Replies: 4 comments 3 replies
-
Hi @RudyBone We don't have built-in support for CORS. However, it is something that could be added via snippets. I suggest taking a look at this example https://enable-cors.org/server_nginx.html and adding those parts to your Ingress resource via |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
This can also be achieved using the VirtualServer resource by applying a location-snippet |
Beta Was this translation helpful? Give feedback.
-
is there a reason such "support" is not included in the upstream templates, conditionally applied if an according annotation is present on the ingress? While the actual NGINX configuration statements to be used to enable CORS may need detailed discussion (I'm definitely no NGINX expert, and found a different statement to work for me), the change to apply them if some annotation is present seem to be "a piece of cake". So I'm wondering if it's just that nobody found time for an according PR - or if there's some other reason behind it, making it more complicated than I currently can oversee? |
Beta Was this translation helpful? Give feedback.
-
I'm using version 1.8.0. looking for a clear example of how to enable cors in the ingress.yaml
Beta Was this translation helpful? Give feedback.
All reactions