Skip to content

Commit

Permalink
Specify allowed headers to fix CORS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
frechg committed Oct 13, 2024
1 parent 110d328 commit e658ed6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local-interchain/interchain/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func StartChain(installDir, chainCfgFile string, ac *types.AppStartConfig) {
// Where ORIGIN_ALLOWED is like `scheme://dns[:port]`, or `*` (insecure)
corsHandler := handlers.CORS(
handlers.AllowedOrigins([]string{"*"}),
handlers.AllowedHeaders([]string{"*"}),
handlers.AllowedHeaders([]string{"Content-Type", "Authorization", "Accept"}),
handlers.AllowedMethods([]string{"GET", "HEAD", "POST", "PUT", "OPTIONS", "DELETE"}),
handlers.AllowCredentials(),
handlers.ExposedHeaders([]string{"*"}),
Expand Down

0 comments on commit e658ed6

Please sign in to comment.