From 0d0a71a7235dc70e4d5a7a241d5c0a5986ad3237 Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Tue, 20 Jul 2021 19:22:37 +0100 Subject: [PATCH] fix formatting Signed-off-by: Andrew Thornton --- routers/web/web.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/routers/web/web.go b/routers/web/web.go index f3897e64857bb..31a14743d8a36 100644 --- a/routers/web/web.go +++ b/routers/web/web.go @@ -60,7 +60,7 @@ func CorsHandler() func(next http.Handler) http.Handler { AllowedOrigins: setting.CORSConfig.AllowDomain, //setting.CORSConfig.AllowSubdomain // FIXME: the cors middleware needs allowSubdomain option AllowedMethods: setting.CORSConfig.Methods, - AllowedHeaders: []string{"*"}, + AllowedHeaders: []string{"*"}, AllowCredentials: setting.CORSConfig.AllowCredentials, MaxAge: int(setting.CORSConfig.MaxAge.Seconds()), }) @@ -153,10 +153,10 @@ func Routes() *web.Route { //Scheme: setting.CORSConfig.Scheme, // FIXME: the cors middleware needs scheme option AllowedOrigins: setting.CORSConfig.AllowDomain, //setting.CORSConfig.AllowSubdomain // FIXME: the cors middleware needs allowSubdomain option - AllowedMethods: setting.CORSConfig.Methods, + AllowedMethods: setting.CORSConfig.Methods, AllowedHeaders: []string{"*"}, // OptionsPassthrough: true, - Debug: true, + Debug: true, AllowCredentials: setting.CORSConfig.AllowCredentials, MaxAge: int(setting.CORSConfig.MaxAge.Seconds()), }) @@ -164,7 +164,6 @@ func Routes() *web.Route { } //*/ - // Removed: toolbox.Toolboxer middleware will provide debug information which seems unnecessary common = append(common, context.Contexter())