From cbd94fc4b59f01d7cb15448bf5b071face7d2a1a Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 14 Mar 2024 23:06:11 +1100 Subject: [PATCH] Fix for caddyfile (#6712) - Add "authorization" to Access-Control-Allow-Headers - CORS requests actually *work* now --- docker/Caddyfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/Caddyfile b/docker/Caddyfile index b501f10552..8e5e2f81a7 100644 --- a/docker/Caddyfile +++ b/docker/Caddyfile @@ -10,9 +10,10 @@ } (cors-headers) { + header Allow GET,HEAD,OPTIONS header Access-Control-Allow-Origin * header Access-Control-Allow-Methods GET,HEAD,OPTIONS - header Access-Control-Allow-Headers User-Agent,Content-Type + header Access-Control-Allow-Headers Authorization,Content-Type,User-Agent @cors_preflight{args[0]} method OPTIONS