Files
homelab/k8s/apps/syncthing/cors-middleware.yaml

18 lines
388 B
YAML
Raw Normal View History

apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: cors-headers
namespace: syncthing
spec:
headers:
accessControlAllowMethods:
- "GET"
- "OPTIONS"
- "POST"
accessControlAllowHeaders:
- "*"
accessControlAllowOriginList:
- "https://ss.hexor.cy"
- "https://idm.hexor.cy"
accessControlMaxAge: 100
addVaryHeader: true