Laravel Enabling Cross-origin Resource Sharing

Enabling Cross-origin Resource Sharing. This is how you can enable CORS cross domain resource sharing for your Laravel 4 back-end API.

Create a filter.

Specify the routes that will use it.

ref:
http://www.codeheaps.com/php-programming/creating-restful-api-using-laravel-angularjs-frontend/%20Enabling%20Cross-origin%20Resource%20Sharing

Sam Deering is a web developer from England (currently living in Australia). In his spare time he enjoys coding, playing chess, reading and investing.

Leave a Reply

Your email address will not be published. Required fields are marked *