From 5c0fd23dab61610fc27b0793e4c31ac9162ef7af Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Fri, 24 Nov 2023 02:11:14 +0100 Subject: [PATCH] Fix Firefox CORS failing due to new "baggage" header. --- icedreammusic/tunadish/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icedreammusic/tunadish/main.go b/icedreammusic/tunadish/main.go index 883d6f3..9da2780 100644 --- a/icedreammusic/tunadish/main.go +++ b/icedreammusic/tunadish/main.go @@ -20,7 +20,7 @@ func main() { r.Use(cors.New(cors.Config{ AllowAllOrigins: true, 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"}, AllowCredentials: false, MaxAge: 12 * time.Hour,