This commit is contained in:
parent
798a79a3e4
commit
3ad9a6c2da
|
|
@ -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
|
||||
|
||||
|
|
@ -6,6 +6,7 @@ metadata:
|
|||
annotations:
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
traefik.ingress.kubernetes.io/router.middlewares: default-oidc-cors@kubernetescrd
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
|
|
|
|||
Loading…
Reference in New Issue