You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
corsConfig=cors.DefaultConfig()
corsConfig.AllowOrigins= []string{"http://localhost:3000"}
corsConfig.AllowCredentials=truecorsConfig.AddAllowHeaders("Authorization") // Add any additional headers you need to allowcorsConfig.AddAllowHeaders("UserID")
corsConfig.AddAllowHeaders("UserType")
We are adding one one Headers manually like UserID and UserType. Can we don something that all the headers are allowed by default.
The text was updated successfully, but these errors were encountered:
We are adding one one Headers manually like UserID and UserType. Can we don something that all the headers are allowed by default.
The text was updated successfully, but these errors were encountered: