21 lines
559 B
YAML
21 lines
559 B
YAML
# Traefik CORS Middleware Configuration
|
|
# This file can be used if Traefik is configured with file-based dynamic config
|
|
# Place this in Traefik's dynamic config directory (usually /etc/traefik/dynamic/ or /traefik/dynamic/)
|
|
|
|
http:
|
|
middlewares:
|
|
cors-headers:
|
|
headers:
|
|
accessControlAllowMethods:
|
|
- GET
|
|
- POST
|
|
- PUT
|
|
- PATCH
|
|
- DELETE
|
|
- OPTIONS
|
|
accessControlAllowOrigin: "*"
|
|
accessControlAllowHeaders: "*"
|
|
accessControlMaxAge: 600
|
|
addVaryHeader: true
|
|
|