Remove CORS middleware from public share configuration

This commit is contained in:
Leon Bösche
2026-01-25 04:02:15 +01:00
parent 1eae6d5713
commit 13a5310ba5

View File

@@ -1,25 +1,9 @@
http: http:
middlewares:
public-cors:
headers:
accessControlAllowOrigin:
- "*"
accessControlAllowMethods:
- "GET"
- "HEAD"
- "OPTIONS"
accessControlAllowHeaders:
- "Range"
- "Authorization"
- "Content-Type"
addVaryHeader: true
routers: routers:
public-share-router: public-share-router:
rule: "Host(`www.b0esche.cloud`) && PathPrefix(`/public/`)" rule: 'Host("www.b0esche.cloud") && PathPrefix("/public/")'
entryPoints: entryPoints:
- websecure - websecure
middlewares:
- public-cors
service: public-share-service service: public-share-service
tls: {} tls: {}
services: services: