This commit is contained in:
2026-05-13 16:13:56 +03:00
parent 2b73267a02
commit fd1543df7e
4 changed files with 24 additions and 1 deletions
@@ -0,0 +1,23 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: {{$.Release.Name}}-cors
namespace: {{$.Release.Namespace}}
spec:
headers:
accessControlAllowMethods:
- "GET"
- "POST"
- "PUT"
- "DELETE"
- "OPTIONS"
- "PATCH"
accessControlAllowHeaders:
- "*"
accessControlAllowOriginList:
- "*"
accessControlMaxAge: 100
addVaryHeader: true
accessControlAllowCredentials: true
customResponseHeaders:
X-CORS-Middleware: "enabled"