Kubernetes.K3s.installLog/services/Matrix.WIP/middleware-Matrix.yml
2021-03-11 08:57:52 +01:00

20 lines
461 B
YAML

apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: matrix-cors-headers
namespace: matrix
spec:
headers:
accessControlAllowHeaders:
- "Authorization"
- "Content-Type"
accessControlAllowMethods:
- "GET"
- "OPTIONS"
- "PUT"
accessControlAllowOriginList:
- "https://chat.spamasaurus.com"
- "https://synapse.chat.spamasaurus.com"
accessControlMaxAge: 100
addVaryHeader: true