{"action":"closed","issue":{"url":"https://api.github.com/repos/jekyll/jekyll-admin/issues/29","repository_url":"https://api.github.com/repos/jekyll/jekyll-admin","labels_url":"https://api.github.com/repos/jekyll/jekyll-admin/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll-admin/issues/29/comments","events_url":"https://api.github.com/repos/jekyll/jekyll-admin/issues/29/events","html_url":"https://github.com/jekyll/jekyll-admin/issues/29","id":164182272,"number":29,"title":"Allow CORS for dev server","user":{"login":"mertkahyaoglu","id":7414026,"avatar_url":"https://avatars.githubusercontent.com/u/7414026?v=3","gravatar_id":"","url":"https://api.github.com/users/mertkahyaoglu","html_url":"https://github.com/mertkahyaoglu","followers_url":"https://api.github.com/users/mertkahyaoglu/followers","following_url":"https://api.github.com/users/mertkahyaoglu/following{/other_user}","gists_url":"https://api.github.com/users/mertkahyaoglu/gists{/gist_id}","starred_url":"https://api.github.com/users/mertkahyaoglu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mertkahyaoglu/subscriptions","organizations_url":"https://api.github.com/users/mertkahyaoglu/orgs","repos_url":"https://api.github.com/users/mertkahyaoglu/repos","events_url":"https://api.github.com/users/mertkahyaoglu/events{/privacy}","received_events_url":"https://api.github.com/users/mertkahyaoglu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-06T21:46:20Z","updated_at":"2016-07-07T19:26:15Z","closed_at":"2016-07-07T19:26:15Z","body":"Frontend dev server runs on port 3000 and sends requests to the API running on port 4000. This is only for development. For production, both runs on the same port anyway. This check differentiates the API url accordingly;\r\n``` javascript\r\nif (process.env.NODE_ENV === 'production') {\r\n  API = '/_api';\r\n} else {\r\n  API = 'http://localhost:4000/_api';\r\n}\r\n```\r\nHowever, difference between ports cause CORS now. What can we do about this?"}}
{"actor":{"display_login":"benbalter"}}