Skip to content

Commit 0e379fd

Browse files
committed
updated headers
1 parent 0161040 commit 0e379fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎cors.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ func CORSDefault(headers ...string) CORSPolicy {
2222
"GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS",
2323
},
2424
AllowedHeaders: append([]string{
25-
"Accept", "Authorization", "Content-Type", "Origin",
26-
"X-Requested-With",
25+
"Accept", "Authorization", "Cache-Control", "Content-Disposition",
26+
"Content-Type", "Origin", "X-Requested-With",
2727
}, headers...),
2828
ExposedHeaders: []string{"Content-Type"},
2929
AllowCredentials: true,

0 commit comments

Comments
 (0)
⌂ 换网址