We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df6cfb7 commit 6f0a820Copy full SHA for 6f0a820
cors.go
@@ -77,7 +77,7 @@ func (c Config) Validate() error {
77
// DefaultConfig returns a generic default configuration mapped to localhost.
78
func DefaultConfig() Config {
79
return Config{
80
- AllowMethods: []string{"GET", "POST", "PUT", "HEAD"},
+ AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"},
81
AllowHeaders: []string{"Origin", "Content-Length", "Content-Type"},
82
AllowCredentials: false,
83
MaxAge: 12 * time.Hour,
0 commit comments