This commit is contained in:
2026-02-20 13:08:31 +03:00
parent fe1e2ea05a
commit 9c1220fbf6
3 changed files with 41 additions and 0 deletions
@@ -0,0 +1,20 @@
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: {{$.Release.Name}}-cors
namespace: {{$.Release.Namespace}}
spec:
headers:
accessControlAllowMethods:
- "GET"
- "POST"
- "PUT"
- "DELETE"
- "OPTIONS"
accessControlAllowHeaders:
- "Content-Type"
- "Authorization"
accessControlAllowOriginList:
- "*" # или конкретный домен
accessControlMaxAge: 100
addVaryHeader: true