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