Skip to content

Commit

Permalink
Fix: default CORS setting header should be applied with new change
Browse files Browse the repository at this point in the history
  • Loading branch information
HFO4 committed Nov 26, 2021
1 parent 4eb7525 commit 7ea72cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/conf/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var CaptchaConfig = &captcha{
var CORSConfig = &cors{
AllowOrigins: []string{"UNSET"},
AllowMethods: []string{"PUT", "POST", "GET", "OPTIONS"},
AllowHeaders: []string{"Cookie", "X-Cr-Policy", "Authorization", "Content-Length", "Content-Type", "X-Path", "X-FileName"},
AllowHeaders: []string{"Cookie", "X-Cr-Policy", "Authorization", "Content-Length", "Content-Type", "X-Cr-Path", "X-Cr-FileName"},
AllowCredentials: false,
ExposeHeaders: nil,
}
Expand Down

0 comments on commit 7ea72cf

Please sign in to comment.