I am trying to make a json request to laravel from a different URL and am getting the following error back:
XMLHttpRequest cannot load http://api.core/v1.0/accounting/items/. Origin http://site.dev is not allowed by Access-Control-Allow-Origin.
I tried setting this in my after filter with no luck. I am using NGINX:
App::after(function($request, $response)
{
$response->headers->set('Access-Control-Allow-Origin', '*');
return $response;
});