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