From fa624d7558b9f70d38c8c0c07d5dcbdae9803cff Mon Sep 17 00:00:00 2001 From: mason Date: Fri, 27 Sep 2024 09:43:56 +0800 Subject: [PATCH] Add more cors method to ingress --- helm-chart/charts/csghub/charts/portal/templates/ingress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm-chart/charts/csghub/charts/portal/templates/ingress.yaml b/helm-chart/charts/csghub/charts/portal/templates/ingress.yaml index e36fb3a..600a45d 100644 --- a/helm-chart/charts/csghub/charts/portal/templates/ingress.yaml +++ b/helm-chart/charts/csghub/charts/portal/templates/ingress.yaml @@ -14,7 +14,7 @@ metadata: labels: {{ include "common.labels" . | nindent 4 }} annotations: nginx.ingress.kubernetes.io/enable-cors: "true" - nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS" + nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, DELETE, PATCH, GET, POST, OPTIONS" nginx.ingress.kubernetes.io/cors-allow-headers: "Host, X-Real-IP, X-Forwarded-Proto, X-Forwarded-Host, X-Forwarded-For" nginx.ingress.kubernetes.io/cors-allow-origin: "*" nginx.ingress.kubernetes.io/cors-allow-credentials: "true"