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 ad68022 commit 1ed99e8Copy full SHA for 1ed99e8
routers/web/web.go
@@ -60,6 +60,7 @@ func CorsHandler() func(next http.Handler) http.Handler {
60
AllowedOrigins: setting.CORSConfig.AllowDomain,
61
//setting.CORSConfig.AllowSubdomain // FIXME: the cors middleware needs allowSubdomain option
62
AllowedMethods: setting.CORSConfig.Methods,
63
+ AllowedHeaders: []string{"*"},
64
AllowCredentials: setting.CORSConfig.AllowCredentials,
65
MaxAge: int(setting.CORSConfig.MaxAge.Seconds()),
66
})
0 commit comments