CORS not working when configuration-snippet annotation is used #11990
Labels
kind/support
Categorizes issue or PR as a support question.
needs-priority
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
triage/needs-information
Indicates an issue needs more information in order to work on it.
What happened:
I am using
nginx.ingress.kubernetes.io/configuration-snippet
together withnginx.ingress.kubernetes.io/cors-allow-origin
andnginx.ingress.kubernetes.io/enable-cors
annotations.What you expected to happen:
I expected
nginx.ingress.kubernetes.io/configuration-snippet
value to be present in generatednginx.conf
together with the generated code allowing CORS. However I can see only the stuff fromconfiguration-snippet
. It appears the CORS part starting with:is not present in
nginx.conf
when you also useconfiguration-snippet
. I can manually copy that code toconfiguration-snippet
but I believe this to be a bug. I apologize if this is a known issue already or works like that by design but fromUsing this annotation you can add additional configuration to the NGINX location
I got the impression both parts should be merged.Kubernetes version (use
kubectl version
):Server Version: v1.30.3-eks-2f46c53
The text was updated successfully, but these errors were encountered: