payload: {"action":"created","issue":{"url":"https://api.github.com/repos/expressjs/cors/issues/176","repository_url":"https://api.github.com/repos/expressjs/cors","labels_url":"https://api.github.com/repos/expressjs/cors/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/expressjs/cors/issues/176/comments","events_url":"https://api.github.com/repos/expressjs/cors/issues/176/events","html_url":"https://github.com/expressjs/cors/issues/176","id":453234290,"node_id":"MDU6SXNzdWU0NTMyMzQyOTA=","number":176,"title":"CORS prevent server from giving response","user":{"login":"erickgannem","id":30934351,"node_id":"MDQ6VXNlcjMwOTM0MzUx","avatar_url":"https://avatars3.githubusercontent.com/u/30934351?v=4","gravatar_id":"","url":"https://api.github.com/users/erickgannem","html_url":"https://github.com/erickgannem","followers_url":"https://api.github.com/users/erickgannem/followers","following_url":"https://api.github.com/users/erickgannem/following{/other_user}","gists_url":"https://api.github.com/users/erickgannem/gists{/gist_id}","starred_url":"https://api.github.com/users/erickgannem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickgannem/subscriptions","organizations_url":"https://api.github.com/users/erickgannem/orgs","repos_url":"https://api.github.com/users/erickgannem/repos","events_url":"https://api.github.com/users/erickgannem/events{/privacy}","received_events_url":"https://api.github.com/users/erickgannem/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-06T20:55:20Z","updated_at":"2019-06-06T21:03:01Z","closed_at":"2019-06-06T21:03:01Z","author_association":"NONE","body":"Hello, I would like to ask about this particular problem. It's the first time I face it, and I found it weird.\r\nThe problem is, as soon as I add CORS middleware, my server stops from giving response no matter the type of the request. Here I will add some screenshots that show the issue.\r\n\r\n## before adding CORS everything seems to work fine.\r\n![wo_cors1](https://user-images.githubusercontent.com/30934351/59065796-909bdf00-887b-11e9-8815-b1e14de7fff4.png)\r\n![wo_cors2](https://user-images.githubusercontent.com/30934351/59065797-909bdf00-887b-11e9-9f4a-b5e4b4867bae.png)\r\n![wo_cors3](https://user-images.githubusercontent.com/30934351/59065798-909bdf00-887b-11e9-9d1d-95755444320f.png)\r\n\r\n## but as soon as I add it and include into the middlewares, the problem occurs.\r\n![w_cors1](https://user-images.githubusercontent.com/30934351/59065829-a6a99f80-887b-11e9-94c7-e40890456e4c.png)\r\n![w_cors2](https://user-images.githubusercontent.com/30934351/59065830-a6a99f80-887b-11e9-90ab-a40c76d864ce.png)\r\n![w_cors3](https://user-images.githubusercontent.com/30934351/59065831-a6a99f80-887b-11e9-84f0-2960da98b12d.png)\r\n![w_cors4](https://user-images.githubusercontent.com/30934351/59065833-a6a99f80-887b-11e9-8894-d1d04400c40a.png)\r\n\r\nHere's an screenshot of my package.json, don't know if it would have a conflict with another dependency\r\n![packagejson](https://user-images.githubusercontent.com/30934351/59065863-ba550600-887b-11e9-9531-9fa301a7cd18.png)\r\n"},"comment":{"url":"https://api.github.com/repos/expressjs/cors/issues/comments/499666528","html_url":"https://github.com/expressjs/cors/issues/176#issuecomment-499666528","issue_url":"https://api.github.com/repos/expressjs/cors/issues/176","id":499666528,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5OTY2NjUyOA==","user":{"login":"dougwilson","id":67512,"node_id":"MDQ6VXNlcjY3NTEy","avatar_url":"https://avatars3.githubusercontent.com/u/67512?v=4","gravatar_id":"","url":"https://api.github.com/users/dougwilson","html_url":"https://github.com/dougwilson","followers_url":"https://api.github.com/users/dougwilson/followers","following_url":"https://api.github.com/users/dougwilson/following{/other_user}","gists_url":"https://api.github.com/users/dougwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/dougwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dougwilson/subscriptions","organizations_url":"https://api.github.com/users/dougwilson/orgs","repos_url":"https://api.github.com/users/dougwilson/repos","events_url":"https://api.github.com/users/dougwilson/events{/privacy}","received_events_url":"https://api.github.com/users/dougwilson/received_events","type":"User","site_admin":false},"created_at":"2019-06-06T21:03:01Z","updated_at":"2019-06-06T21:03:01Z","author_association":"MEMBER","body":"You're missing the `()` after `cors`."}}
other: {"actor":{"display_login":"dougwilson"}}