From 452c292570f31e985ee4961b1d61bf88abe39429 Mon Sep 17 00:00:00 2001 From: Daniel Maslowski Date: Mon, 17 Mar 2025 21:52:57 +0100 Subject: [PATCH] adjust Traefik header for legacy Traefik pre-v2 Our modern infrastructure is not yet ready for this, apparently. --- docker-compose.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 6abc123..ce8645b 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -9,11 +9,12 @@ services: - traefik.port=3000 - traefik.frontend.passHostHeader=true - traefik.enable=true - - traefik.http.middlewares.testheader.headers.accesscontrolallowmethods=GET,OPTIONS,PUT - - traefik.http.middlewares.testheader.headers.accesscontrolallowheaders=* - - traefik.http.middlewares.testheader.headers.accesscontrolalloworiginlist=https://chaospott.de - - traefik.http.middlewares.testheader.headers.accesscontrolmaxage=100 - - traefik.http.middlewares.testheader.headers.addvaryheader=true + - traefik.frontend.headers.customResponseHeaders=Access-Control-Allow-Origin:* + # NOTE: This is for Traefik v2, apparently. + - traefik.http.middlewares.cors.headers.accesscontrolallowmethods=GET,OPTIONS,PUT + - traefik.http.middlewares.cors.headers.accesscontrolalloworiginlist=https://chaospott.de + - traefik.http.middlewares.cors.headers.accesscontrolmaxage=100 + - traefik.http.middlewares.cors.headers.addvaryheader=true networks: - extern