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 3bb024a commit ad35efdCopy full SHA for ad35efd
cmd/serve_http.go
@@ -40,10 +40,10 @@ var serveHttpCmd = &cobra.Command{
40
41
// build cors
42
muxCorsWithRouter := muxHandlers.CORS(
43
- // muxHandlers.AllowCredentials(),
44
- muxHandlers.AllowedHeaders([]string{"*"}),
45
- muxHandlers.AllowedMethods([]string{"*"}),
46
- muxHandlers.AllowedOrigins([]string{"*"}),
+ muxHandlers.AllowedHeaders(cfg.CORS_ALLOWED_HEADERS),
+ muxHandlers.AllowedMethods(cfg.CORS_ALLOWED_METHODS),
+ muxHandlers.AllowedOrigins(cfg.CORS_ALLOWED_ORIGINS),
+ muxHandlers.AllowCredentials(),
47
)(router)
48
49
srv := &http.Server{
0 commit comments