Laravel 5.1 API Enable Cors

I’ve looked for some ways to enable cors on laravel 5.1 specifically, I have found some libs like:

https://github.com/neomerx/cors-illuminate
https://github.com/barryvdh/laravel-cors

but none of them has a implementation tutorial specifically to Laravel 5.1, I tried to config but It doesn’t work.

If someone already implemented CORS on laravel 5.1 I would be grateful for the help…


Source: laravel

Leave a Reply