preflight cors fix

This commit is contained in:
Cedric Verstraeten
2024-10-31 12:53:12 +01:00
parent a935bed9e4
commit 7a3fde3b4c
2 changed files with 7 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.68.0
version: 0.69.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to

View File

@@ -96,6 +96,7 @@ spec:
servicePort: 8081
{{- end }}
{{ end }}
{{- if eq .Values.kerberoshub.oauth2Proxy.enabled true }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
@@ -109,6 +110,10 @@ metadata:
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/server-snippet: |
if ($request_method = "OPTIONS") {
return 200;
}
{{- end }}
spec:
ingressClassName: nginx
@@ -127,6 +132,7 @@ spec:
- hosts:
- "{{ .Values.kerberoshub.api.url }}"
secretName:
{{- end }}
---
apiVersion: apps/v1
kind: Deployment