This commit is contained in:
孙小云 2025-09-09 16:18:54 +08:00
parent 798a79a3e4
commit 3ad9a6c2da
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,26 @@
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

View File

@ -6,6 +6,7 @@ metadata:
annotations: annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
traefik.ingress.kubernetes.io/router.tls: "true" traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.middlewares: default-oidc-cors@kubernetescrd
spec: spec:
tls: tls:
- hosts: - hosts: