Skip to content

Commit 1bd92c9

Browse files
committed
fix: set allow methods by config
1 parent 53bbfdd commit 1bd92c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handler/http/middleware/cors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func WithAllowOrigins(origins []string) CORSOption {
2121

2222
func WithAllowMethods(methods []string) CORSOption {
2323
return func(o *CORSOptions) {
24-
o.AllowOrigins = methods
24+
o.AllowMethods = methods
2525
}
2626
}
2727

0 commit comments

Comments
 (0)