Skip to content

Commit 3bb024a

Browse files
committed
fix: hardcode cors
1 parent d3a25df commit 3bb024a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cmd/serve_http.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ var serveHttpCmd = &cobra.Command{
4141
// build cors
4242
muxCorsWithRouter := muxHandlers.CORS(
4343
// muxHandlers.AllowCredentials(),
44-
muxHandlers.AllowedHeaders(cfg.CORS_ALLOWED_HEADERS),
45-
muxHandlers.AllowedMethods(cfg.CORS_ALLOWED_METHODS),
46-
muxHandlers.AllowedOrigins(cfg.CORS_ALLOWED_ORIGINS),
44+
muxHandlers.AllowedHeaders([]string{"*"}),
45+
muxHandlers.AllowedMethods([]string{"*"}),
46+
muxHandlers.AllowedOrigins([]string{"*"}),
4747
)(router)
4848

4949
srv := &http.Server{

0 commit comments

Comments
 (0)