{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/13643","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/13643/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/13643/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/13643/events","html_url":"https://github.com/laravel/framework/issues/13643","id":156100517,"number":13643,"title":"CORS middleware not getting executed","user":{"login":"jayeshanandani","id":3860787,"avatar_url":"https://avatars.githubusercontent.com/u/3860787?v=3","gravatar_id":"","url":"https://api.github.com/users/jayeshanandani","html_url":"https://github.com/jayeshanandani","followers_url":"https://api.github.com/users/jayeshanandani/followers","following_url":"https://api.github.com/users/jayeshanandani/following{/other_user}","gists_url":"https://api.github.com/users/jayeshanandani/gists{/gist_id}","starred_url":"https://api.github.com/users/jayeshanandani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayeshanandani/subscriptions","organizations_url":"https://api.github.com/users/jayeshanandani/orgs","repos_url":"https://api.github.com/users/jayeshanandani/repos","events_url":"https://api.github.com/users/jayeshanandani/events{/privacy}","received_events_url":"https://api.github.com/users/jayeshanandani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-21T12:48:58Z","updated_at":"2016-05-21T13:27:38Z","closed_at":null,"body":"Hi,\r\n\r\nWe have a middleware called 'cors' registered in $routeMiddleware. Whenever there is an API request like the GET it does go into middleware.\r\n\r\nApart from that if we try to send POST,  PUT request it doesn't goes to the middleware and instead throws an error:\r\n\r\nXMLHttpRequest cannot load xxxx. Response to the preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.\r\n\r\nRelated: #13103"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/220777748","html_url":"https://github.com/laravel/framework/issues/13643#issuecomment-220777748","issue_url":"https://api.github.com/repos/laravel/framework/issues/13643","id":220777748,"user":{"login":"themsaid","id":4332182,"avatar_url":"https://avatars.githubusercontent.com/u/4332182?v=3","gravatar_id":"","url":"https://api.github.com/users/themsaid","html_url":"https://github.com/themsaid","followers_url":"https://api.github.com/users/themsaid/followers","following_url":"https://api.github.com/users/themsaid/following{/other_user}","gists_url":"https://api.github.com/users/themsaid/gists{/gist_id}","starred_url":"https://api.github.com/users/themsaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themsaid/subscriptions","organizations_url":"https://api.github.com/users/themsaid/orgs","repos_url":"https://api.github.com/users/themsaid/repos","events_url":"https://api.github.com/users/themsaid/events{/privacy}","received_events_url":"https://api.github.com/users/themsaid/received_events","type":"User","site_admin":false},"created_at":"2016-05-21T13:27:38Z","updated_at":"2016-05-21T13:27:38Z","body":"@jayeshanandani how do you handle preflight requests?"}}
{"actor":{"display_login":"themsaid"}}