@@ -60,7 +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 {"*" },
63+ AllowedHeaders : []string {"*" },
6464 AllowCredentials : setting .CORSConfig .AllowCredentials ,
6565 MaxAge : int (setting .CORSConfig .MaxAge .Seconds ()),
6666 })
@@ -153,18 +153,17 @@ func Routes() *web.Route {
153153 //Scheme: setting.CORSConfig.Scheme, // FIXME: the cors middleware needs scheme option
154154 AllowedOrigins : setting .CORSConfig .AllowDomain ,
155155 //setting.CORSConfig.AllowSubdomain // FIXME: the cors middleware needs allowSubdomain option
156- AllowedMethods : setting .CORSConfig .Methods ,
156+ AllowedMethods : setting .CORSConfig .Methods ,
157157 AllowedHeaders : []string {"*" },
158158 // OptionsPassthrough: true,
159- Debug : true ,
159+ Debug : true ,
160160 AllowCredentials : setting .CORSConfig .AllowCredentials ,
161161 MaxAge : int (setting .CORSConfig .MaxAge .Seconds ()),
162162 })
163163 common = append (common , corsHandle )
164164 }
165165 //*/
166166
167-
168167 // Removed: toolbox.Toolboxer middleware will provide debug information which seems unnecessary
169168 common = append (common , context .Contexter ())
170169
0 commit comments