Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akwanmaroso committed Jan 10, 2025
1 parent ad35efd commit 1e8cfb5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmd/serve_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,9 @@ var serveHttpCmd = &cobra.Command{

// build cors
muxCorsWithRouter := muxHandlers.CORS(
muxHandlers.AllowedHeaders(cfg.CORS_ALLOWED_HEADERS),
muxHandlers.AllowedMethods(cfg.CORS_ALLOWED_METHODS),
muxHandlers.AllowedOrigins(cfg.CORS_ALLOWED_ORIGINS),
muxHandlers.AllowCredentials(),
muxHandlers.AllowedHeaders([]string{"*"}),
muxHandlers.AllowedMethods([]string{"*"}),
muxHandlers.AllowedOrigins([]string{"*"}),
)(router)

srv := &http.Server{
Expand Down

0 comments on commit 1e8cfb5

Please sign in to comment.