From 62d976eae59542c41fb2dfde3b3ecb4332fc88a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sun, 25 Jan 2026 14:15:43 +0100 Subject: [PATCH] Revert "Remove CORS middleware from public share configuration" This reverts commit 13a5310ba57fd0bc06df1316f0a225626ef1a8e0. --- traefik/dynamic/public_share.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/traefik/dynamic/public_share.yml b/traefik/dynamic/public_share.yml index b58eb35..fe8926b 100644 --- a/traefik/dynamic/public_share.yml +++ b/traefik/dynamic/public_share.yml @@ -1,9 +1,25 @@ http: + middlewares: + public-cors: + headers: + accessControlAllowOrigin: + - "*" + accessControlAllowMethods: + - "GET" + - "HEAD" + - "OPTIONS" + accessControlAllowHeaders: + - "Range" + - "Authorization" + - "Content-Type" + addVaryHeader: true routers: public-share-router: - rule: 'Host("www.b0esche.cloud") && PathPrefix("/public/")' + rule: "Host(`www.b0esche.cloud`) && PathPrefix(`/public/`)" entryPoints: - websecure + middlewares: + - public-cors service: public-share-service tls: {} services: