Skip to content

Commit

Permalink
fix: cors headers
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Dec 8, 2024
1 parent 7163ce5 commit 12bc628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helm/metrics/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ metadata:
nginx.ingress.kubernetes.io/limit-connections: "{{ .Values.ingress.limit.connections }}"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-origin: "{{ .Values.ingress.corsAllowOrigin }}"
nginx.ingress.kubernetes.io/cors-allow-methods: "HEAD, OPTIONS, GET, POST"
nginx.ingress.kubernetes.io/cors-allow-headers: "If-None-Match"
nginx.ingress.kubernetes.io/cors-allow-methods: "HEAD, OPTIONS, GET"
nginx.ingress.kubernetes.io/cors-allow-headers: "Accept,Accept-Encoding,Accept-Language,Connection,Host,Cookie,If-None-Match,User-Agent,X-Awakari-Group-Id,X-Awakari-User-Id"
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
Expand Down

0 comments on commit 12bc628

Please sign in to comment.