From fda9178264f71709725caec9eddcd7db8ba586c2 Mon Sep 17 00:00:00 2001 From: cpu Date: Fri, 28 Mar 2025 15:45:20 +0100 Subject: [PATCH] fixed cors --- labels | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/labels b/labels index 6cb2687..355f0f0 100644 --- a/labels +++ b/labels @@ -20,13 +20,13 @@ traefik.http.services.flic-webhook-webpush.loadbalancer.server.port=3000 traefik.http.middlewares.cors-headers.headers.accesscontrolallowmethods=POST,GET,OPTIONS traefik.http.middlewares.cors-headers.headers.accesscontrolalloworiginlist=https://game-timer.virtonline.eu traefik.http.middlewares.cors-headers.headers.accesscontrolallowheaders=Content-Type,Authorization +traefik.http.middlewares.cors-headers.headers.accesscontrolallowcredentials=true traefik.http.middlewares.cors-headers.headers.accesscontrolmaxage=600 traefik.http.middlewares.cors-headers.headers.addvaryheader=true -# Apply the middleware to the router -traefik.http.routers.flic-webhook-webpush.middlewares=cors-headers # Middleware Rate Limiting traefik.http.middlewares.flic-ratelimit.ratelimit.average=10 traefik.http.middlewares.flic-ratelimit.ratelimit.burst=20 -# Apply the middleware to the router -traefik.http.routers.flic-webhook-webpush.middlewares=flic-ratelimit + +# Apply both middlewares to the router (comma-separated list) +traefik.http.routers.flic-webhook-webpush.middlewares=cors-headers,flic-ratelimit