CORS headers not being set for a 401 response from upstream.
nginx-forum at nginx.us
Fri Aug 21 17:30:15 UTC 2015
To quote previous email from Maxim:
XMLHttpRequest object to find out if the request was successful or not"
The problem here is that xhr.status === 0 if you don't have CORS headers
present. If nginx doesn't allow you to add_headers for a 401, a 504, a 404
server errors in the same way? Simply because 401 !== 504.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250740,261171#msg-261171
More information about the nginx