Skip to content

Commit 1ed99e8

Browse files
committed
fix(CORS): forget allow headers
1 parent ad68022 commit 1ed99e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/web.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ func CorsHandler() func(next http.Handler) http.Handler {
6060
AllowedOrigins: setting.CORSConfig.AllowDomain,
6161
//setting.CORSConfig.AllowSubdomain // FIXME: the cors middleware needs allowSubdomain option
6262
AllowedMethods: setting.CORSConfig.Methods,
63+
AllowedHeaders: []string{"*"},
6364
AllowCredentials: setting.CORSConfig.AllowCredentials,
6465
MaxAge: int(setting.CORSConfig.MaxAge.Seconds()),
6566
})

0 commit comments

Comments
 (0)