fixed cors
This commit is contained in:
8
labels
8
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.accesscontrolallowmethods=POST,GET,OPTIONS
|
||||||
traefik.http.middlewares.cors-headers.headers.accesscontrolalloworiginlist=https://game-timer.virtonline.eu
|
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.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.accesscontrolmaxage=600
|
||||||
traefik.http.middlewares.cors-headers.headers.addvaryheader=true
|
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
|
# Middleware Rate Limiting
|
||||||
traefik.http.middlewares.flic-ratelimit.ratelimit.average=10
|
traefik.http.middlewares.flic-ratelimit.ratelimit.average=10
|
||||||
traefik.http.middlewares.flic-ratelimit.ratelimit.burst=20
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user