Fix preflight response status in access logs
Co-authored-by: lbenguigui <lbenguigui@gmail.com>
This commit is contained in:
parent
ab7993428d
commit
e95fde5652
4 changed files with 60 additions and 0 deletions
|
@ -85,6 +85,16 @@ services:
|
|||
traefik.http.middlewares.wl.ipwhitelist.sourcerange: 8.8.8.8/32
|
||||
traefik.http.services.service3.loadbalancer.server.port: 80
|
||||
|
||||
preflightCORS:
|
||||
image: traefik/whoami
|
||||
labels:
|
||||
traefik.enable: true
|
||||
traefik.http.routers.rt-preflightCORS.entryPoints: preflight
|
||||
traefik.http.routers.rt-preflightCORS.rule: Host(`preflight.docker.local`)
|
||||
traefik.http.routers.rt-preflightCORS.middlewares: preflightCORS
|
||||
traefik.http.middlewares.preflightCORS.headers.accessControlAllowMethods: OPTIONS, GET
|
||||
traefik.http.services.preflightCORS.loadbalancer.server.port: 80
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: traefik-test-network
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue