Kubernetes help speckle CORS

Hi guys,

i have speckle aws k8 deployment using helm charts. I want to limit my speckle server CORS to only 2 sources. I am using ingress-nginx controller with the config:

nginx.ingress.kubernetes.io/cors-allow-origin: "https://api-dev.app.com, https://api-stg.app.com"
nginx.ingress.kubernetes.io/cors-allow-headers: Content-Type, authorization
nginx.ingress.kubernetes.io/cors-allow-methods: PUT, GET, POST, OPTIONS

but when i check cors via https://cors-test.codehappy.dev/ looks like my cors is not picked UP, as it is overrided by frontend_2 origin service.

How i could archive CORS using this setup?

Thanks!

Hi,

I have now switched to the new HELM Speckle OCI implementation and also replaced nginx-ingress with the Gateway API and nginx gateway fabric.

I still have questions about CORS, if that can be implemented on the speckle-server using some non defined variables or how i would tacle this issue.

This topic was automatically closed after 180 days. New replies are no longer allowed.