Skip to content

Commit 1e8cfb5

Browse files
committed
fix
1 parent ad35efd commit 1e8cfb5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

cmd/serve_http.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ var serveHttpCmd = &cobra.Command{
4040

4141
// build cors
4242
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(),
43+
muxHandlers.AllowedHeaders([]string{"*"}),
44+
muxHandlers.AllowedMethods([]string{"*"}),
45+
muxHandlers.AllowedOrigins([]string{"*"}),
4746
)(router)
4847

4948
srv := &http.Server{

0 commit comments

Comments
 (0)