I am making a cross-domain request in my web application.
I set the CORS headers on Nginx. Everything works fine, except when the service returns an error, for example, 404, 400, 500, etc. Instead of receiving an error code, the service does not work with an error saying that Origin *********** is not allowed by Access-Control-Allow-Origin.
Any ideas why this could be happening?
source
share