Skip to content

Commit 0d0a71a

Browse files
committed
fix formatting
Signed-off-by: Andrew Thornton <[email protected]>
1 parent 566b248 commit 0d0a71a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

routers/web/web.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)