added allow headers
This commit is contained in:
parent
e448a6c2f8
commit
d565b05ab7
1
main.go
1
main.go
@ -23,6 +23,7 @@ func main() {
|
||||
cors_config := cors.DefaultConfig()
|
||||
cors_config.AllowOrigins = []string{"https://games.acooldomain.co"}
|
||||
cors_config.AllowCredentials = true
|
||||
cors_config.AllowHeaders = []string{"*"}
|
||||
router.Use(cors.New(cors_config))
|
||||
file, err := os.Open(os.Getenv(CONFIG_PATH_ENV_VAR))
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user