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 7a5a959 commit 485acf9Copy full SHA for 485acf9
routers/api/v1/api.go
@@ -605,7 +605,7 @@ func Routes() *web.Route {
605
// setting.CORSConfig.AllowSubdomain // FIXME: the cors middleware needs allowSubdomain option
606
AllowedMethods: setting.CORSConfig.Methods,
607
AllowCredentials: setting.CORSConfig.AllowCredentials,
608
- AllowedHeaders: []string{"Authorization", "X-CSRFToken", "X-Gitea-OTP"},
+ AllowedHeaders: []string{"Authorization", "X-Gitea-OTP"},
609
MaxAge: int(setting.CORSConfig.MaxAge.Seconds()),
610
}))
611
}
0 commit comments