Skip to content

Commit 6f0a820

Browse files
daluappleboy
authored andcommitted
fix #33 (#34)
1 parent df6cfb7 commit 6f0a820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (c Config) Validate() error {
7777
// DefaultConfig returns a generic default configuration mapped to localhost.
7878
func DefaultConfig() Config {
7979
return Config{
80-
AllowMethods: []string{"GET", "POST", "PUT", "HEAD"},
80+
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"},
8181
AllowHeaders: []string{"Origin", "Content-Length", "Content-Type"},
8282
AllowCredentials: false,
8383
MaxAge: 12 * time.Hour,

0 commit comments

Comments
 (0)