{"action":"created","comment":{"url":"https://api.github.com/repos/ruci06/vote_widget/pulls/comments/77944239","id":77944239,"diff_hunk":"@@ -27,11 +27,17 @@ REST.prototype.connectMysql = function () {\n REST.prototype.configureExpress = function(conn) {\n \tvar self = this;\n \tapp.set('port',process.env.PORT || 3000);\n+\tapp.use(function(req, res, next) {\n+\t  res.header(\"Access-Control-Allow-Origin\", \"*\");","path":"dev/index.js","position":5,"original_position":5,"commit_id":"1ce5593b6c9987a624c41adfce1747d52163c2a1","original_commit_id":"1ce5593b6c9987a624c41adfce1747d52163c2a1","user":{"login":"bjrnt","id":484114,"avatar_url":"https://avatars.githubusercontent.com/u/484114?v=3","gravatar_id":"","url":"https://api.github.com/users/bjrnt","html_url":"https://github.com/bjrnt","followers_url":"https://api.github.com/users/bjrnt/followers","following_url":"https://api.github.com/users/bjrnt/following{/other_user}","gists_url":"https://api.github.com/users/bjrnt/gists{/gist_id}","starred_url":"https://api.github.com/users/bjrnt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjrnt/subscriptions","organizations_url":"https://api.github.com/users/bjrnt/orgs","repos_url":"https://api.github.com/users/bjrnt/repos","events_url":"https://api.github.com/users/bjrnt/events{/privacy}","received_events_url":"https://api.github.com/users/bjrnt/received_events","type":"User","site_admin":false},"body":"이렇게 하면 이 어플의 안전성이 많이 떨어지는데 만약에 이거 production로 옮긴다면 이 문제를 어떻게 풀 수 있을까요?","created_at":"2016-09-08T04:25:44Z","updated_at":"2016-09-08T04:25:44Z","html_url":"https://github.com/ruci06/vote_widget/pull/15#discussion_r77944239","pull_request_url":"https://api.github.com/repos/ruci06/vote_widget/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/ruci06/vote_widget/pulls/comments/77944239"},"html":{"href":"https://github.com/ruci06/vote_widget/pull/15#discussion_r77944239"},"pull_request":{"href":"https://api.github.com/repos/ruci06/vote_widget/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/ruci06/vote_widget/pulls/15","id":84070554,"html_url":"https://github.com/ruci06/vote_widget/pull/15","diff_url":"https://github.com/ruci06/vote_widget/pull/15.diff","patch_url":"https://github.com/ruci06/vote_widget/pull/15.patch","issue_url":"https://api.github.com/repos/ruci06/vote_widget/issues/15","number":15,"state":"open","locked":false,"title":"Basic react app","user":{"login":"ruci06","id":8432296,"avatar_url":"https://avatars.githubusercontent.com/u/8432296?v=3","gravatar_id":"","url":"https://api.github.com/users/ruci06","html_url":"https://github.com/ruci06","followers_url":"https://api.github.com/users/ruci06/followers","following_url":"https://api.github.com/users/ruci06/following{/other_user}","gists_url":"https://api.github.com/users/ruci06/gists{/gist_id}","starred_url":"https://api.github.com/users/ruci06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruci06/subscriptions","organizations_url":"https://api.github.com/users/ruci06/orgs","repos_url":"https://api.github.com/users/ruci06/repos","events_url":"https://api.github.com/users/ruci06/events{/privacy}","received_events_url":"https://api.github.com/users/ruci06/received_events","type":"User","site_admin":false},"body":"#7 users - votes table 수정\r\n#14  react app 기본 기능 완성","created_at":"2016-09-06T07:07:19Z","updated_at":"2016-09-08T04:25:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ruci06/vote_widget/pulls/15/commits","review_comments_url":"https://api.github.com/repos/ruci06/vote_widget/pulls/15/comments","review_comment_url":"https://api.github.com/repos/ruci06/vote_widget/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruci06/vote_widget/issues/15/comments","statuses_url":"https://api.github.com/repos/ruci06/vote_widget/statuses/1ce5593b6c9987a624c41adfce1747d52163c2a1","head":{"label":"ruci06:react","ref":"react","sha":"1ce5593b6c9987a624c41adfce1747d52163c2a1","user":{"login":"ruci06","id":8432296,"avatar_url":"https://avatars.githubusercontent.com/u/8432296?v=3","gravatar_id":"","url":"https://api.github.com/users/ruci06","html_url":"https://github.com/ruci06","followers_url":"https://api.github.com/users/ruci06/followers","following_url":"https://api.github.com/users/ruci06/following{/other_user}","gists_url":"https://api.github.com/users/ruci06/gists{/gist_id}","starred_url":"https://api.github.com/users/ruci06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruci06/subscriptions","organizations_url":"https://api.github.com/users/ruci06/orgs","repos_url":"https://api.github.com/users/ruci06/repos","events_url":"https://api.github.com/users/ruci06/events{/privacy}","received_events_url":"https://api.github.com/users/ruci06/received_events","type":"User","site_admin":false},"repo":{"id":66748840,"name":"vote_widget","full_name":"ruci06/vote_widget","owner":{"login":"ruci06","id":8432296,"avatar_url":"https://avatars.githubusercontent.com/u/8432296?v=3","gravatar_id":"","url":"https://api.github.com/users/ruci06","html_url":"https://github.com/ruci06","followers_url":"https://api.github.com/users/ruci06/followers","following_url":"https://api.github.com/users/ruci06/following{/other_user}","gists_url":"https://api.github.com/users/ruci06/gists{/gist_id}","starred_url":"https://api.github.com/users/ruci06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruci06/subscriptions","organizations_url":"https://api.github.com/users/ruci06/orgs","repos_url":"https://api.github.com/users/ruci06/repos","events_url":"https://api.github.com/users/ruci06/events{/privacy}","received_events_url":"https://api.github.com/users/ruci06/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ruci06/vote_widget","description":null,"fork":false,"url":"https://api.github.com/repos/ruci06/vote_widget","forks_url":"https://api.github.com/repos/ruci06/vote_widget/forks","keys_url":"https://api.github.com/repos/ruci06/vote_widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruci06/vote_widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruci06/vote_widget/teams","hooks_url":"https://api.github.com/repos/ruci06/vote_widget/hooks","issue_events_url":"https://api.github.com/repos/ruci06/vote_widget/issues/events{/number}","events_url":"https://api.github.com/repos/ruci06/vote_widget/events","assignees_url":"https://api.github.com/repos/ruci06/vote_widget/assignees{/user}","branches_url":"https://api.github.com/repos/ruci06/vote_widget/branches{/branch}","tags_url":"https://api.github.com/repos/ruci06/vote_widget/tags","blobs_url":"https://api.github.com/repos/ruci06/vote_widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruci06/vote_widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruci06/vote_widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruci06/vote_widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruci06/vote_widget/statuses/{sha}","languages_url":"https://api.github.com/repos/ruci06/vote_widget/languages","stargazers_url":"https://api.github.com/repos/ruci06/vote_widget/stargazers","contributors_url":"https://api.github.com/repos/ruci06/vote_widget/contributors","subscribers_url":"https://api.github.com/repos/ruci06/vote_widget/subscribers","subscription_url":"https://api.github.com/repos/ruci06/vote_widget/subscription","commits_url":"https://api.github.com/repos/ruci06/vote_widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruci06/vote_widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruci06/vote_widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruci06/vote_widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruci06/vote_widget/contents/{+path}","compare_url":"https://api.github.com/repos/ruci06/vote_widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruci06/vote_widget/merges","archive_url":"https://api.github.com/repos/ruci06/vote_widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruci06/vote_widget/downloads","issues_url":"https://api.github.com/repos/ruci06/vote_widget/issues{/number}","pulls_url":"https://api.github.com/repos/ruci06/vote_widget/pulls{/number}","milestones_url":"https://api.github.com/repos/ruci06/vote_widget/milestones{/number}","notifications_url":"https://api.github.com/repos/ruci06/vote_widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruci06/vote_widget/labels{/name}","releases_url":"https://api.github.com/repos/ruci06/vote_widget/releases{/id}","deployments_url":"https://api.github.com/repos/ruci06/vote_widget/deployments","created_at":"2016-08-28T04:10:17Z","updated_at":"2016-09-05T10:51:01Z","pushed_at":"2016-09-08T03:23:47Z","git_url":"git://github.com/ruci06/vote_widget.git","ssh_url":"git@github.com:ruci06/vote_widget.git","clone_url":"https://github.com/ruci06/vote_widget.git","svn_url":"https://github.com/ruci06/vote_widget","homepage":null,"size":578,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"ruci06:master","ref":"master","sha":"ce9b15fab727c0bde293636ecc9c65c955a02c88","user":{"login":"ruci06","id":8432296,"avatar_url":"https://avatars.githubusercontent.com/u/8432296?v=3","gravatar_id":"","url":"https://api.github.com/users/ruci06","html_url":"https://github.com/ruci06","followers_url":"https://api.github.com/users/ruci06/followers","following_url":"https://api.github.com/users/ruci06/following{/other_user}","gists_url":"https://api.github.com/users/ruci06/gists{/gist_id}","starred_url":"https://api.github.com/users/ruci06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruci06/subscriptions","organizations_url":"https://api.github.com/users/ruci06/orgs","repos_url":"https://api.github.com/users/ruci06/repos","events_url":"https://api.github.com/users/ruci06/events{/privacy}","received_events_url":"https://api.github.com/users/ruci06/received_events","type":"User","site_admin":false},"repo":{"id":66748840,"name":"vote_widget","full_name":"ruci06/vote_widget","owner":{"login":"ruci06","id":8432296,"avatar_url":"https://avatars.githubusercontent.com/u/8432296?v=3","gravatar_id":"","url":"https://api.github.com/users/ruci06","html_url":"https://github.com/ruci06","followers_url":"https://api.github.com/users/ruci06/followers","following_url":"https://api.github.com/users/ruci06/following{/other_user}","gists_url":"https://api.github.com/users/ruci06/gists{/gist_id}","starred_url":"https://api.github.com/users/ruci06/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruci06/subscriptions","organizations_url":"https://api.github.com/users/ruci06/orgs","repos_url":"https://api.github.com/users/ruci06/repos","events_url":"https://api.github.com/users/ruci06/events{/privacy}","received_events_url":"https://api.github.com/users/ruci06/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ruci06/vote_widget","description":null,"fork":false,"url":"https://api.github.com/repos/ruci06/vote_widget","forks_url":"https://api.github.com/repos/ruci06/vote_widget/forks","keys_url":"https://api.github.com/repos/ruci06/vote_widget/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruci06/vote_widget/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruci06/vote_widget/teams","hooks_url":"https://api.github.com/repos/ruci06/vote_widget/hooks","issue_events_url":"https://api.github.com/repos/ruci06/vote_widget/issues/events{/number}","events_url":"https://api.github.com/repos/ruci06/vote_widget/events","assignees_url":"https://api.github.com/repos/ruci06/vote_widget/assignees{/user}","branches_url":"https://api.github.com/repos/ruci06/vote_widget/branches{/branch}","tags_url":"https://api.github.com/repos/ruci06/vote_widget/tags","blobs_url":"https://api.github.com/repos/ruci06/vote_widget/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruci06/vote_widget/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruci06/vote_widget/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruci06/vote_widget/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruci06/vote_widget/statuses/{sha}","languages_url":"https://api.github.com/repos/ruci06/vote_widget/languages","stargazers_url":"https://api.github.com/repos/ruci06/vote_widget/stargazers","contributors_url":"https://api.github.com/repos/ruci06/vote_widget/contributors","subscribers_url":"https://api.github.com/repos/ruci06/vote_widget/subscribers","subscription_url":"https://api.github.com/repos/ruci06/vote_widget/subscription","commits_url":"https://api.github.com/repos/ruci06/vote_widget/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruci06/vote_widget/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruci06/vote_widget/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruci06/vote_widget/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruci06/vote_widget/contents/{+path}","compare_url":"https://api.github.com/repos/ruci06/vote_widget/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruci06/vote_widget/merges","archive_url":"https://api.github.com/repos/ruci06/vote_widget/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruci06/vote_widget/downloads","issues_url":"https://api.github.com/repos/ruci06/vote_widget/issues{/number}","pulls_url":"https://api.github.com/repos/ruci06/vote_widget/pulls{/number}","milestones_url":"https://api.github.com/repos/ruci06/vote_widget/milestones{/number}","notifications_url":"https://api.github.com/repos/ruci06/vote_widget/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruci06/vote_widget/labels{/name}","releases_url":"https://api.github.com/repos/ruci06/vote_widget/releases{/id}","deployments_url":"https://api.github.com/repos/ruci06/vote_widget/deployments","created_at":"2016-08-28T04:10:17Z","updated_at":"2016-09-05T10:51:01Z","pushed_at":"2016-09-08T03:23:47Z","git_url":"git://github.com/ruci06/vote_widget.git","ssh_url":"git@github.com:ruci06/vote_widget.git","clone_url":"https://github.com/ruci06/vote_widget.git","svn_url":"https://github.com/ruci06/vote_widget","homepage":null,"size":578,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ruci06/vote_widget/pulls/15"},"html":{"href":"https://github.com/ruci06/vote_widget/pull/15"},"issue":{"href":"https://api.github.com/repos/ruci06/vote_widget/issues/15"},"comments":{"href":"https://api.github.com/repos/ruci06/vote_widget/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/ruci06/vote_widget/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/ruci06/vote_widget/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruci06/vote_widget/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/ruci06/vote_widget/statuses/1ce5593b6c9987a624c41adfce1747d52163c2a1"}}}}
{"actor":{"display_login":"bjrnt"}}