{"action":"created","issue":{"url":"https://api.github.com/repos/barryvdh/laravel-cors/issues/113","repository_url":"https://api.github.com/repos/barryvdh/laravel-cors","labels_url":"https://api.github.com/repos/barryvdh/laravel-cors/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/barryvdh/laravel-cors/issues/113/comments","events_url":"https://api.github.com/repos/barryvdh/laravel-cors/issues/113/events","html_url":"https://github.com/barryvdh/laravel-cors/issues/113","id":151564434,"number":113,"title":"No CORS-Headers sent in Lumen 5.2","user":{"login":"bernhardw","id":919880,"avatar_url":"https://avatars.githubusercontent.com/u/919880?v=3","gravatar_id":"","url":"https://api.github.com/users/bernhardw","html_url":"https://github.com/bernhardw","followers_url":"https://api.github.com/users/bernhardw/followers","following_url":"https://api.github.com/users/bernhardw/following{/other_user}","gists_url":"https://api.github.com/users/bernhardw/gists{/gist_id}","starred_url":"https://api.github.com/users/bernhardw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernhardw/subscriptions","organizations_url":"https://api.github.com/users/bernhardw/orgs","repos_url":"https://api.github.com/users/bernhardw/repos","events_url":"https://api.github.com/users/bernhardw/events{/privacy}","received_events_url":"https://api.github.com/users/bernhardw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-04-28T07:04:35Z","updated_at":"2016-08-27T09:47:22Z","closed_at":null,"body":"Using Lumen 5.2.6 and laravel-cors 0.8.0.\r\n\r\nAfter copying cors.php to /config and updating my /bootstrap/app.php with \r\n\r\n```\r\n// [...]\r\n\r\n$app->middleware([\r\n    Barryvdh\\Cors\\HandleCors::class\r\n]);\r\n\r\n$app->register(Barryvdh\\Cors\\LumenServiceProvider::class);\r\n\r\n$app->configure('cors');\r\n\r\n// [...]\r\n```\r\n\r\nno CORS headers are being sent and no errors are shown. \r\nThe /config/cors.php is being picked up though.\r\n\r\nAdding `header(\"Access-Control-Allow-Origin: *\");` to /public/index.php shows the header.\r\n\r\nIs there anything missing, or do I still need to specify the cors middleware in my routes/controllers?"},"comment":{"url":"https://api.github.com/repos/barryvdh/laravel-cors/issues/comments/242907694","html_url":"https://github.com/barryvdh/laravel-cors/issues/113#issuecomment-242907694","issue_url":"https://api.github.com/repos/barryvdh/laravel-cors/issues/113","id":242907694,"user":{"login":"bernhardw","id":919880,"avatar_url":"https://avatars.githubusercontent.com/u/919880?v=3","gravatar_id":"","url":"https://api.github.com/users/bernhardw","html_url":"https://github.com/bernhardw","followers_url":"https://api.github.com/users/bernhardw/followers","following_url":"https://api.github.com/users/bernhardw/following{/other_user}","gists_url":"https://api.github.com/users/bernhardw/gists{/gist_id}","starred_url":"https://api.github.com/users/bernhardw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernhardw/subscriptions","organizations_url":"https://api.github.com/users/bernhardw/orgs","repos_url":"https://api.github.com/users/bernhardw/repos","events_url":"https://api.github.com/users/bernhardw/events{/privacy}","received_events_url":"https://api.github.com/users/bernhardw/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T09:47:22Z","updated_at":"2016-08-27T09:47:22Z","body":"Honestly, I just kept the `Access-Control-Allow-Origin` headers hard-coded in my index.php for that project and was using Laravel since."}}
{"actor":{"display_login":"bernhardw"}}