Explorar o código

fix #33 (#34)

dalu %!s(int64=7) %!d(string=hai) anos
pai
achega
6f0a820f94
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cors.go

+ 1 - 1
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,