add fix
This commit is contained in:
parent
00cdc1ac13
commit
323bcf374e
@ -34,9 +34,17 @@ func NewApp(
|
||||
server.Use(
|
||||
middleware.CORSWithConfig(
|
||||
middleware.CORSConfig{
|
||||
AllowOrigins: []string{"*"}, // Разрешить все домены
|
||||
AllowMethods: []string{"*"},
|
||||
AllowHeaders: []string{"*"},
|
||||
AllowOrigins: []string{
|
||||
"https://donatehelper.com",
|
||||
"https://donatehelper.com",
|
||||
"https://widget.donatehelper.com",
|
||||
"http://widget.donatehelper.com",
|
||||
"http://127.0.0.1:8002",
|
||||
},
|
||||
AllowHeaders: []string{"Content-Type", "Authorization", "X-Requested-With"},
|
||||
AllowCredentials: true,
|
||||
ExposeHeaders: []string{"Content-Length"},
|
||||
MaxAge: 86400,
|
||||
},
|
||||
),
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user