From 9b0971296913979235dca6c100cdd69c1f05b04b Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Fri, 13 Sep 2024 00:24:13 +0200 Subject: [PATCH] Add cors ente ingresses 2 --- ente-photos/ente-ingress.yaml | 1 + ente-photos/ente-web-ingress.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/ente-photos/ente-ingress.yaml b/ente-photos/ente-ingress.yaml index 0fbf73b..f65d1e0 100644 --- a/ente-photos/ente-ingress.yaml +++ b/ente-photos/ente-ingress.yaml @@ -8,6 +8,7 @@ metadata: nginx.ingress.kubernetes.io/ssl-passthrough: "false" nginx.ingress.kubernetes.io/enable-cors: "true" nginx.ingress.kubernetes.io/cors-allow-origin: "*" + nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS, DELETE" # If you encounter a redirect loop or are getting a 307 response code # then you need to force the nginx ingress to connect to the backend using HTTPS. # diff --git a/ente-photos/ente-web-ingress.yaml b/ente-photos/ente-web-ingress.yaml index 3874efa..63f43d4 100644 --- a/ente-photos/ente-web-ingress.yaml +++ b/ente-photos/ente-web-ingress.yaml @@ -8,6 +8,7 @@ metadata: nginx.ingress.kubernetes.io/ssl-passthrough: "false" nginx.ingress.kubernetes.io/enable-cors: "true" nginx.ingress.kubernetes.io/cors-allow-origin: "*" + nginx.ingress.kubernetes.io/cors-allow-methods: "PUT, GET, POST, OPTIONS, DELETE" # If you encounter a redirect loop or are getting a 307 response code # then you need to force the nginx ingress to connect to the backend using HTTPS. #