From 0d0395aed36244b0e085cb1f0e86a5a4555fdf6b Mon Sep 17 00:00:00 2001 From: dalu <2694548+dalu@users.noreply.github.com> Date: Sat, 10 Feb 2018 23:10:30 +0100 Subject: [PATCH] fix #33 --- cors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cors.go b/cors.go index 865b1fe..278221b 100644 --- a/cors.go +++ b/cors.go @@ -77,7 +77,7 @@ func (c Config) Validate() error { // DefaultConfig returns a generic default configuration mapped to localhost. func DefaultConfig() Config { return Config{ - AllowMethods: []string{"GET", "POST", "PUT", "HEAD"}, + AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"}, AllowHeaders: []string{"Origin", "Content-Length", "Content-Type"}, AllowCredentials: false, MaxAge: 12 * time.Hour,