{"action":"opened","issue":{"url":"https://api.github.com/repos/learn-co-students/mern_lecture-web-103017/issues/1","repository_url":"https://api.github.com/repos/learn-co-students/mern_lecture-web-103017","labels_url":"https://api.github.com/repos/learn-co-students/mern_lecture-web-103017/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/learn-co-students/mern_lecture-web-103017/issues/1/comments","events_url":"https://api.github.com/repos/learn-co-students/mern_lecture-web-103017/issues/1/events","html_url":"https://github.com/learn-co-students/mern_lecture-web-103017/issues/1","id":301096159,"number":1,"title":"consider just adding cors middleware instead of the cors configuration currently used","user":{"login":"pawlkris","id":20077493,"avatar_url":"https://avatars0.githubusercontent.com/u/20077493?v=4","gravatar_id":"","url":"https://api.github.com/users/pawlkris","html_url":"https://github.com/pawlkris","followers_url":"https://api.github.com/users/pawlkris/followers","following_url":"https://api.github.com/users/pawlkris/following{/other_user}","gists_url":"https://api.github.com/users/pawlkris/gists{/gist_id}","starred_url":"https://api.github.com/users/pawlkris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pawlkris/subscriptions","organizations_url":"https://api.github.com/users/pawlkris/orgs","repos_url":"https://api.github.com/users/pawlkris/repos","events_url":"https://api.github.com/users/pawlkris/events{/privacy}","received_events_url":"https://api.github.com/users/pawlkris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-28T16:40:33Z","updated_at":"2018-02-28T16:40:33Z","closed_at":null,"author_association":"NONE","body":"installing the cors npm package and importing seems a lot simpler for the purpose of this (i.e. just `app.use(cors())`). also might be a good resource to include in this walkthrough in case people want a resource to show how to restrict routes:\r\n\r\nhttps://github.com/expressjs/cors"}}
{"actor":{"display_login":"pawlkris"}}