devops/ingress/oidc-cors-middleware.yaml

27 lines
546 B
YAML

apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: oidc-cors
namespace: default
spec:
headers:
accessControlAllowOriginList:
- https://a-ops.t-aaron.com
- https://b-ops.t-aaron.com
accessControlAllowMethods:
- GET
- POST
- OPTIONS
accessControlAllowHeaders:
- DNT
- User-Agent
- X-Requested-With
- If-Modified-Since
- Cache-Control
- Content-Type
- Range
- Authorization
accessControlAllowCredentials: true
addVaryHeader: true