Laravel + AngularJS CORS not working Laravel + AngularJS CORS not working nginx nginx

Laravel + AngularJS CORS not working


Angular.js $http service considers valid any status between 200 and 299 inclusive, you can see it in the $http source code; here and here I can't find the status 200 hardcoded anywhere else.

Despite the Chrome console message, the problem could be something that Alistair Robinson points in this post Check if your nginx is updated to the latest stable version, and then check if it is sending 'Content-Length' header correctly, if it's not, I'll go with the Alistair solution to manually fill Content-Length header.