RSS

Monthly Archives: April 2017

How to enable CORS in Laravel 5

How to enable CORS in Laravel 5

1. Add middleware
php artisan make:middleware Cors

return $next($request)
->header(‘Access-Control-Allow-Origin’, ‘*’)
->header(‘Access-Control-Allow-Methods’, ‘GET, POST, PUT, DELETE, OPTIONS’);

2. Register middleware as a route middleware

3. Use middleware in routes which support CORS

Advertisements
 
Leave a comment

Posted by on April 20, 2017 in Laravel

 

Tags: ,

Video

Up and Running MapServer in Windows

 
Leave a comment

Posted by on April 5, 2017 in Geo Programming

 

Tags: ,

Video

How to Convert Shape file into geojson

 
Leave a comment

Posted by on April 3, 2017 in Geo Programming

 

Tags: ,