{"action":"created","comment":{"url":"https://api.github.com/repos/gin-contrib/cors/pulls/comments/84072397","pull_request_review_id":4872119,"id":84072397,"diff_hunk":"@@ -37,38 +45,35 @@ func main() {\n }\n ```\n \n-###Using DefaultConfig as start point\n+### Using DefaultConfig as start point\n \n ```go\n func main() {\n-    router := gin.Default()\n-    // - No origin allowed by default\n-    // - GET,POST, PUT, HEAD methods\n-    // - Credentials share disabled\n-    // - Preflight requests cached for 12 hours\n-    config := cors.DefaultConfig()\n-    config.AllowOrigins = []string{\"http://google.com\"}\n-    config.AddAllowOrigins(\"http://facebook.com\")\n-    // config.AllowOrigins == []string{\"http://google.com\", \"http://facebook.com\"}\n+\trouter := gin.Default()","path":"README.md","position":37,"original_position":37,"commit_id":"abb9f2e422eecfe3f93cd09436ebbca49c4f4129","original_commit_id":"abb9f2e422eecfe3f93cd09436ebbca49c4f4129","user":{"login":"appleboy","id":21979,"avatar_url":"https://avatars.githubusercontent.com/u/21979?v=3","gravatar_id":"","url":"https://api.github.com/users/appleboy","html_url":"https://github.com/appleboy","followers_url":"https://api.github.com/users/appleboy/followers","following_url":"https://api.github.com/users/appleboy/following{/other_user}","gists_url":"https://api.github.com/users/appleboy/gists{/gist_id}","starred_url":"https://api.github.com/users/appleboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appleboy/subscriptions","organizations_url":"https://api.github.com/users/appleboy/orgs","repos_url":"https://api.github.com/users/appleboy/repos","events_url":"https://api.github.com/users/appleboy/events{/privacy}","received_events_url":"https://api.github.com/users/appleboy/received_events","type":"User","site_admin":false},"body":"I just convert spaces to tabs.","created_at":"2016-10-19T13:43:25Z","updated_at":"2016-10-19T13:43:25Z","html_url":"https://github.com/gin-contrib/cors/pull/4#discussion_r84072397","pull_request_url":"https://api.github.com/repos/gin-contrib/cors/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/gin-contrib/cors/pulls/comments/84072397"},"html":{"href":"https://github.com/gin-contrib/cors/pull/4#discussion_r84072397"},"pull_request":{"href":"https://api.github.com/repos/gin-contrib/cors/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/gin-contrib/cors/pulls/4","id":90003340,"html_url":"https://github.com/gin-contrib/cors/pull/4","diff_url":"https://github.com/gin-contrib/cors/pull/4.diff","patch_url":"https://github.com/gin-contrib/cors/pull/4.patch","issue_url":"https://api.github.com/repos/gin-contrib/cors/issues/4","number":4,"state":"open","locked":false,"title":"Add travis config and coverage badge.","user":{"login":"appleboy","id":21979,"avatar_url":"https://avatars.githubusercontent.com/u/21979?v=3","gravatar_id":"","url":"https://api.github.com/users/appleboy","html_url":"https://github.com/appleboy","followers_url":"https://api.github.com/users/appleboy/followers","following_url":"https://api.github.com/users/appleboy/following{/other_user}","gists_url":"https://api.github.com/users/appleboy/gists{/gist_id}","starred_url":"https://api.github.com/users/appleboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appleboy/subscriptions","organizations_url":"https://api.github.com/users/appleboy/orgs","repos_url":"https://api.github.com/users/appleboy/repos","events_url":"https://api.github.com/users/appleboy/events{/privacy}","received_events_url":"https://api.github.com/users/appleboy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-19T12:55:16Z","updated_at":"2016-10-19T13:43:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c424eeb90c8f7e34d5bcfdde0b2b2120a3320226","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gin-contrib/cors/pulls/4/commits","review_comments_url":"https://api.github.com/repos/gin-contrib/cors/pulls/4/comments","review_comment_url":"https://api.github.com/repos/gin-contrib/cors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gin-contrib/cors/issues/4/comments","statuses_url":"https://api.github.com/repos/gin-contrib/cors/statuses/abb9f2e422eecfe3f93cd09436ebbca49c4f4129","head":{"label":"gin-contrib:patch-1","ref":"patch-1","sha":"abb9f2e422eecfe3f93cd09436ebbca49c4f4129","user":{"login":"gin-contrib","id":15729372,"avatar_url":"https://avatars.githubusercontent.com/u/15729372?v=3","gravatar_id":"","url":"https://api.github.com/users/gin-contrib","html_url":"https://github.com/gin-contrib","followers_url":"https://api.github.com/users/gin-contrib/followers","following_url":"https://api.github.com/users/gin-contrib/following{/other_user}","gists_url":"https://api.github.com/users/gin-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/gin-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gin-contrib/subscriptions","organizations_url":"https://api.github.com/users/gin-contrib/orgs","repos_url":"https://api.github.com/users/gin-contrib/repos","events_url":"https://api.github.com/users/gin-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/gin-contrib/received_events","type":"Organization","site_admin":false},"repo":{"id":45836781,"name":"cors","full_name":"gin-contrib/cors","owner":{"login":"gin-contrib","id":15729372,"avatar_url":"https://avatars.githubusercontent.com/u/15729372?v=3","gravatar_id":"","url":"https://api.github.com/users/gin-contrib","html_url":"https://github.com/gin-contrib","followers_url":"https://api.github.com/users/gin-contrib/followers","following_url":"https://api.github.com/users/gin-contrib/following{/other_user}","gists_url":"https://api.github.com/users/gin-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/gin-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gin-contrib/subscriptions","organizations_url":"https://api.github.com/users/gin-contrib/orgs","repos_url":"https://api.github.com/users/gin-contrib/repos","events_url":"https://api.github.com/users/gin-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/gin-contrib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gin-contrib/cors","description":"Official CORS gin's middleware","fork":false,"url":"https://api.github.com/repos/gin-contrib/cors","forks_url":"https://api.github.com/repos/gin-contrib/cors/forks","keys_url":"https://api.github.com/repos/gin-contrib/cors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gin-contrib/cors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gin-contrib/cors/teams","hooks_url":"https://api.github.com/repos/gin-contrib/cors/hooks","issue_events_url":"https://api.github.com/repos/gin-contrib/cors/issues/events{/number}","events_url":"https://api.github.com/repos/gin-contrib/cors/events","assignees_url":"https://api.github.com/repos/gin-contrib/cors/assignees{/user}","branches_url":"https://api.github.com/repos/gin-contrib/cors/branches{/branch}","tags_url":"https://api.github.com/repos/gin-contrib/cors/tags","blobs_url":"https://api.github.com/repos/gin-contrib/cors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gin-contrib/cors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gin-contrib/cors/git/refs{/sha}","trees_url":"https://api.github.com/repos/gin-contrib/cors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gin-contrib/cors/statuses/{sha}","languages_url":"https://api.github.com/repos/gin-contrib/cors/languages","stargazers_url":"https://api.github.com/repos/gin-contrib/cors/stargazers","contributors_url":"https://api.github.com/repos/gin-contrib/cors/contributors","subscribers_url":"https://api.github.com/repos/gin-contrib/cors/subscribers","subscription_url":"https://api.github.com/repos/gin-contrib/cors/subscription","commits_url":"https://api.github.com/repos/gin-contrib/cors/commits{/sha}","git_commits_url":"https://api.github.com/repos/gin-contrib/cors/git/commits{/sha}","comments_url":"https://api.github.com/repos/gin-contrib/cors/comments{/number}","issue_comment_url":"https://api.github.com/repos/gin-contrib/cors/issues/comments{/number}","contents_url":"https://api.github.com/repos/gin-contrib/cors/contents/{+path}","compare_url":"https://api.github.com/repos/gin-contrib/cors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gin-contrib/cors/merges","archive_url":"https://api.github.com/repos/gin-contrib/cors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gin-contrib/cors/downloads","issues_url":"https://api.github.com/repos/gin-contrib/cors/issues{/number}","pulls_url":"https://api.github.com/repos/gin-contrib/cors/pulls{/number}","milestones_url":"https://api.github.com/repos/gin-contrib/cors/milestones{/number}","notifications_url":"https://api.github.com/repos/gin-contrib/cors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gin-contrib/cors/labels{/name}","releases_url":"https://api.github.com/repos/gin-contrib/cors/releases{/id}","deployments_url":"https://api.github.com/repos/gin-contrib/cors/deployments","created_at":"2015-11-09T12:31:10Z","updated_at":"2016-04-24T04:27:29Z","pushed_at":"2016-10-19T13:00:37Z","git_url":"git://github.com/gin-contrib/cors.git","ssh_url":"git@github.com:gin-contrib/cors.git","clone_url":"https://github.com/gin-contrib/cors.git","svn_url":"https://github.com/gin-contrib/cors","homepage":"https://gin-gonic.github.io/gin/","size":0,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":7,"default_branch":"master"}},"base":{"label":"gin-contrib:master","ref":"master","sha":"5e6551a50c9bcf6c3dff3e85089519312c4bb345","user":{"login":"gin-contrib","id":15729372,"avatar_url":"https://avatars.githubusercontent.com/u/15729372?v=3","gravatar_id":"","url":"https://api.github.com/users/gin-contrib","html_url":"https://github.com/gin-contrib","followers_url":"https://api.github.com/users/gin-contrib/followers","following_url":"https://api.github.com/users/gin-contrib/following{/other_user}","gists_url":"https://api.github.com/users/gin-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/gin-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gin-contrib/subscriptions","organizations_url":"https://api.github.com/users/gin-contrib/orgs","repos_url":"https://api.github.com/users/gin-contrib/repos","events_url":"https://api.github.com/users/gin-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/gin-contrib/received_events","type":"Organization","site_admin":false},"repo":{"id":45836781,"name":"cors","full_name":"gin-contrib/cors","owner":{"login":"gin-contrib","id":15729372,"avatar_url":"https://avatars.githubusercontent.com/u/15729372?v=3","gravatar_id":"","url":"https://api.github.com/users/gin-contrib","html_url":"https://github.com/gin-contrib","followers_url":"https://api.github.com/users/gin-contrib/followers","following_url":"https://api.github.com/users/gin-contrib/following{/other_user}","gists_url":"https://api.github.com/users/gin-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/gin-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gin-contrib/subscriptions","organizations_url":"https://api.github.com/users/gin-contrib/orgs","repos_url":"https://api.github.com/users/gin-contrib/repos","events_url":"https://api.github.com/users/gin-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/gin-contrib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gin-contrib/cors","description":"Official CORS gin's middleware","fork":false,"url":"https://api.github.com/repos/gin-contrib/cors","forks_url":"https://api.github.com/repos/gin-contrib/cors/forks","keys_url":"https://api.github.com/repos/gin-contrib/cors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gin-contrib/cors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gin-contrib/cors/teams","hooks_url":"https://api.github.com/repos/gin-contrib/cors/hooks","issue_events_url":"https://api.github.com/repos/gin-contrib/cors/issues/events{/number}","events_url":"https://api.github.com/repos/gin-contrib/cors/events","assignees_url":"https://api.github.com/repos/gin-contrib/cors/assignees{/user}","branches_url":"https://api.github.com/repos/gin-contrib/cors/branches{/branch}","tags_url":"https://api.github.com/repos/gin-contrib/cors/tags","blobs_url":"https://api.github.com/repos/gin-contrib/cors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gin-contrib/cors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gin-contrib/cors/git/refs{/sha}","trees_url":"https://api.github.com/repos/gin-contrib/cors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gin-contrib/cors/statuses/{sha}","languages_url":"https://api.github.com/repos/gin-contrib/cors/languages","stargazers_url":"https://api.github.com/repos/gin-contrib/cors/stargazers","contributors_url":"https://api.github.com/repos/gin-contrib/cors/contributors","subscribers_url":"https://api.github.com/repos/gin-contrib/cors/subscribers","subscription_url":"https://api.github.com/repos/gin-contrib/cors/subscription","commits_url":"https://api.github.com/repos/gin-contrib/cors/commits{/sha}","git_commits_url":"https://api.github.com/repos/gin-contrib/cors/git/commits{/sha}","comments_url":"https://api.github.com/repos/gin-contrib/cors/comments{/number}","issue_comment_url":"https://api.github.com/repos/gin-contrib/cors/issues/comments{/number}","contents_url":"https://api.github.com/repos/gin-contrib/cors/contents/{+path}","compare_url":"https://api.github.com/repos/gin-contrib/cors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gin-contrib/cors/merges","archive_url":"https://api.github.com/repos/gin-contrib/cors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gin-contrib/cors/downloads","issues_url":"https://api.github.com/repos/gin-contrib/cors/issues{/number}","pulls_url":"https://api.github.com/repos/gin-contrib/cors/pulls{/number}","milestones_url":"https://api.github.com/repos/gin-contrib/cors/milestones{/number}","notifications_url":"https://api.github.com/repos/gin-contrib/cors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gin-contrib/cors/labels{/name}","releases_url":"https://api.github.com/repos/gin-contrib/cors/releases{/id}","deployments_url":"https://api.github.com/repos/gin-contrib/cors/deployments","created_at":"2015-11-09T12:31:10Z","updated_at":"2016-04-24T04:27:29Z","pushed_at":"2016-10-19T13:00:37Z","git_url":"git://github.com/gin-contrib/cors.git","ssh_url":"git@github.com:gin-contrib/cors.git","clone_url":"https://github.com/gin-contrib/cors.git","svn_url":"https://github.com/gin-contrib/cors","homepage":"https://gin-gonic.github.io/gin/","size":0,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":4,"forks":4,"open_issues":4,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gin-contrib/cors/pulls/4"},"html":{"href":"https://github.com/gin-contrib/cors/pull/4"},"issue":{"href":"https://api.github.com/repos/gin-contrib/cors/issues/4"},"comments":{"href":"https://api.github.com/repos/gin-contrib/cors/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/gin-contrib/cors/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/gin-contrib/cors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gin-contrib/cors/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/gin-contrib/cors/statuses/abb9f2e422eecfe3f93cd09436ebbca49c4f4129"}}}}
{"actor":{"display_login":"appleboy"}}