Open g-harshit opened 1 year ago
corsConfig = cors.DefaultConfig() corsConfig.AllowOrigins = []string{"http://localhost:3000"} corsConfig.AllowCredentials = true corsConfig.AddAllowHeaders("Authorization") // Add any additional headers you need to allow corsConfig.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.
We are adding one one Headers manually like UserID and UserType. Can we don something that all the headers are allowed by default.