CORS and Laravel

Posted: 2014-03-06 13:50:00

When doing some API work using Laravel as the REST server I was getting a common error "No 'Access-Control-Allow-Origin' header is present on the requested resource." which happens when the REST server is on a different domain than the client server.

I installed this package https://github.com/barryvdh/laravel-cors and it now works fine.


Tags:

api