Skip to content

Commit

Permalink
preflight cors fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve committed Oct 31, 2024
1 parent a935bed commit 7a3fde3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions charts/hub/templates/kerberos-hub/hub-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ spec:
servicePort: 8081
{{- end }}
{{ end }}
{{- if eq .Values.kerberoshub.oauth2Proxy.enabled true }}
---
apiVersion: networking.k8s.io/v1
kind: Ingress
Expand All @@ -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
Expand All @@ -127,6 +132,7 @@ spec:
- hosts:
- "{{ .Values.kerberoshub.api.url }}"
secretName:
{{- end }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down

0 comments on commit 7a3fde3

Please sign in to comment.