CORS rules nginx-ingress rules
问题 I need to allow requests from multiple origins: http://localhost:4200 , http://localhost:4242 , etc., on nginx-ingress version 1.7.1. But I'm not able to do that for multiple origins, because nginx.ingress.kubernetes.io/cors-allow-credentials: true will not work with nginx.ingress.kubernetes.io/cors-allow-origin: "*" . It causes the browser to generate CORS error. Maybe someone has a solution for avoiding this error? this is my config annotations: kubernetes.io/ingress.class: "nginx" nginx