2020-12-08 22:03:57 +00:00
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: Middleware
|
|
|
|
metadata:
|
|
|
|
name: matrix-cors-headers
|
2021-03-11 07:57:52 +00:00
|
|
|
namespace: matrix
|
2020-12-08 22:03:57 +00:00
|
|
|
spec:
|
|
|
|
headers:
|
|
|
|
accessControlAllowHeaders:
|
|
|
|
- "Authorization"
|
|
|
|
- "Content-Type"
|
|
|
|
accessControlAllowMethods:
|
|
|
|
- "GET"
|
|
|
|
- "OPTIONS"
|
|
|
|
- "PUT"
|
|
|
|
accessControlAllowOriginList:
|
|
|
|
- "https://chat.spamasaurus.com"
|
|
|
|
- "https://synapse.chat.spamasaurus.com"
|
|
|
|
accessControlMaxAge: 100
|
|
|
|
addVaryHeader: true
|