We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad35efd commit 1e8cfb5Copy full SHA for 1e8cfb5
1 file changed
cmd/serve_http.go
@@ -40,10 +40,9 @@ var serveHttpCmd = &cobra.Command{
40
41
// build cors
42
muxCorsWithRouter := muxHandlers.CORS(
43
- muxHandlers.AllowedHeaders(cfg.CORS_ALLOWED_HEADERS),
44
- muxHandlers.AllowedMethods(cfg.CORS_ALLOWED_METHODS),
45
- muxHandlers.AllowedOrigins(cfg.CORS_ALLOWED_ORIGINS),
46
- muxHandlers.AllowCredentials(),
+ muxHandlers.AllowedHeaders([]string{"*"}),
+ muxHandlers.AllowedMethods([]string{"*"}),
+ muxHandlers.AllowedOrigins([]string{"*"}),
47
)(router)
48
49
srv := &http.Server{
0 commit comments