1
0
Fork 0

Fix Firefox CORS failing due to new "baggage" header.

main
Icedream 2023-11-24 02:11:14 +01:00
parent a0b814a9a8
commit 5c0fd23dab
Signed by: icedream
GPG Key ID: 468BBEEBB9EC6AEA
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func main() {
r.Use(cors.New(cors.Config{ r.Use(cors.New(cors.Config{
AllowAllOrigins: true, AllowAllOrigins: true,
AllowMethods: []string{"GET", "POST"}, AllowMethods: []string{"GET", "POST"},
AllowHeaders: []string{"Content-Length", "Content-Type", "Access-Control-Allow-Headers", "Access-Control-Allow-Origin"}, AllowHeaders: []string{"Baggage", "Content-Length", "Content-Type", "Access-Control-Allow-Headers", "Access-Control-Allow-Origin"},
ExposeHeaders: []string{"Content-Length", "Content-Type"}, ExposeHeaders: []string{"Content-Length", "Content-Type"},
AllowCredentials: false, AllowCredentials: false,
MaxAge: 12 * time.Hour, MaxAge: 12 * time.Hour,