{"action":"opened","number":50,"pull_request":{"url":"https://api.github.com/repos/rs/cors/pulls/50","id":171190252,"html_url":"https://github.com/rs/cors/pull/50","diff_url":"https://github.com/rs/cors/pull/50.diff","patch_url":"https://github.com/rs/cors/pull/50.patch","issue_url":"https://api.github.com/repos/rs/cors/issues/50","number":50,"state":"open","locked":false,"title":"Add X-Requested-With to default AllowedHeaders","user":{"login":"orangejulius","id":111716,"avatar_url":"https://avatars3.githubusercontent.com/u/111716?v=4","gravatar_id":"","url":"https://api.github.com/users/orangejulius","html_url":"https://github.com/orangejulius","followers_url":"https://api.github.com/users/orangejulius/followers","following_url":"https://api.github.com/users/orangejulius/following{/other_user}","gists_url":"https://api.github.com/users/orangejulius/gists{/gist_id}","starred_url":"https://api.github.com/users/orangejulius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orangejulius/subscriptions","organizations_url":"https://api.github.com/users/orangejulius/orgs","repos_url":"https://api.github.com/users/orangejulius/repos","events_url":"https://api.github.com/users/orangejulius/events{/privacy}","received_events_url":"https://api.github.com/users/orangejulius/received_events","type":"User","site_admin":false},"body":"This header is fairly commonly set by frontend web frameworks, especially older frameworks. (for more info, see https://markitzeroday.com/x-requested-with/cors/2017/06/29/csrf-mitigation-for-ajax-requests.html)\r\n\r\nAdding this header to the default allowed list allows these frameworks to work without any extra configuration.\r\n\r\nFixes #48","created_at":"2018-02-24T18:12:10Z","updated_at":"2018-02-24T18:12:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rs/cors/pulls/50/commits","review_comments_url":"https://api.github.com/repos/rs/cors/pulls/50/comments","review_comment_url":"https://api.github.com/repos/rs/cors/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rs/cors/issues/50/comments","statuses_url":"https://api.github.com/repos/rs/cors/statuses/af0eb6a56722760b239a5e2bb9739a3f8c1e548e","head":{"label":"orangejulius:add-x-requested-with","ref":"add-x-requested-with","sha":"af0eb6a56722760b239a5e2bb9739a3f8c1e548e","user":{"login":"orangejulius","id":111716,"avatar_url":"https://avatars3.githubusercontent.com/u/111716?v=4","gravatar_id":"","url":"https://api.github.com/users/orangejulius","html_url":"https://github.com/orangejulius","followers_url":"https://api.github.com/users/orangejulius/followers","following_url":"https://api.github.com/users/orangejulius/following{/other_user}","gists_url":"https://api.github.com/users/orangejulius/gists{/gist_id}","starred_url":"https://api.github.com/users/orangejulius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orangejulius/subscriptions","organizations_url":"https://api.github.com/users/orangejulius/orgs","repos_url":"https://api.github.com/users/orangejulius/repos","events_url":"https://api.github.com/users/orangejulius/events{/privacy}","received_events_url":"https://api.github.com/users/orangejulius/received_events","type":"User","site_admin":false},"repo":{"id":120703268,"name":"cors","full_name":"orangejulius/cors","owner":{"login":"orangejulius","id":111716,"avatar_url":"https://avatars3.githubusercontent.com/u/111716?v=4","gravatar_id":"","url":"https://api.github.com/users/orangejulius","html_url":"https://github.com/orangejulius","followers_url":"https://api.github.com/users/orangejulius/followers","following_url":"https://api.github.com/users/orangejulius/following{/other_user}","gists_url":"https://api.github.com/users/orangejulius/gists{/gist_id}","starred_url":"https://api.github.com/users/orangejulius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orangejulius/subscriptions","organizations_url":"https://api.github.com/users/orangejulius/orgs","repos_url":"https://api.github.com/users/orangejulius/repos","events_url":"https://api.github.com/users/orangejulius/events{/privacy}","received_events_url":"https://api.github.com/users/orangejulius/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/orangejulius/cors","description":"Go net/http configurable handler to handle CORS requests","fork":true,"url":"https://api.github.com/repos/orangejulius/cors","forks_url":"https://api.github.com/repos/orangejulius/cors/forks","keys_url":"https://api.github.com/repos/orangejulius/cors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/orangejulius/cors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/orangejulius/cors/teams","hooks_url":"https://api.github.com/repos/orangejulius/cors/hooks","issue_events_url":"https://api.github.com/repos/orangejulius/cors/issues/events{/number}","events_url":"https://api.github.com/repos/orangejulius/cors/events","assignees_url":"https://api.github.com/repos/orangejulius/cors/assignees{/user}","branches_url":"https://api.github.com/repos/orangejulius/cors/branches{/branch}","tags_url":"https://api.github.com/repos/orangejulius/cors/tags","blobs_url":"https://api.github.com/repos/orangejulius/cors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/orangejulius/cors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/orangejulius/cors/git/refs{/sha}","trees_url":"https://api.github.com/repos/orangejulius/cors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/orangejulius/cors/statuses/{sha}","languages_url":"https://api.github.com/repos/orangejulius/cors/languages","stargazers_url":"https://api.github.com/repos/orangejulius/cors/stargazers","contributors_url":"https://api.github.com/repos/orangejulius/cors/contributors","subscribers_url":"https://api.github.com/repos/orangejulius/cors/subscribers","subscription_url":"https://api.github.com/repos/orangejulius/cors/subscription","commits_url":"https://api.github.com/repos/orangejulius/cors/commits{/sha}","git_commits_url":"https://api.github.com/repos/orangejulius/cors/git/commits{/sha}","comments_url":"https://api.github.com/repos/orangejulius/cors/comments{/number}","issue_comment_url":"https://api.github.com/repos/orangejulius/cors/issues/comments{/number}","contents_url":"https://api.github.com/repos/orangejulius/cors/contents/{+path}","compare_url":"https://api.github.com/repos/orangejulius/cors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/orangejulius/cors/merges","archive_url":"https://api.github.com/repos/orangejulius/cors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/orangejulius/cors/downloads","issues_url":"https://api.github.com/repos/orangejulius/cors/issues{/number}","pulls_url":"https://api.github.com/repos/orangejulius/cors/pulls{/number}","milestones_url":"https://api.github.com/repos/orangejulius/cors/milestones{/number}","notifications_url":"https://api.github.com/repos/orangejulius/cors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/orangejulius/cors/labels{/name}","releases_url":"https://api.github.com/repos/orangejulius/cors/releases{/id}","deployments_url":"https://api.github.com/repos/orangejulius/cors/deployments","created_at":"2018-02-08T03:04:44Z","updated_at":"2018-02-08T03:04:46Z","pushed_at":"2018-02-24T18:11:51Z","git_url":"git://github.com/orangejulius/cors.git","ssh_url":"git@github.com:orangejulius/cors.git","clone_url":"https://github.com/orangejulius/cors.git","svn_url":"https://github.com/orangejulius/cors","homepage":null,"size":74,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rs:master","ref":"master","sha":"feef513b9575b32f84bafa580aad89b011259019","user":{"login":"rs","id":68232,"avatar_url":"https://avatars2.githubusercontent.com/u/68232?v=4","gravatar_id":"","url":"https://api.github.com/users/rs","html_url":"https://github.com/rs","followers_url":"https://api.github.com/users/rs/followers","following_url":"https://api.github.com/users/rs/following{/other_user}","gists_url":"https://api.github.com/users/rs/gists{/gist_id}","starred_url":"https://api.github.com/users/rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rs/subscriptions","organizations_url":"https://api.github.com/users/rs/orgs","repos_url":"https://api.github.com/users/rs/repos","events_url":"https://api.github.com/users/rs/events{/privacy}","received_events_url":"https://api.github.com/users/rs/received_events","type":"User","site_admin":false},"repo":{"id":25719147,"name":"cors","full_name":"rs/cors","owner":{"login":"rs","id":68232,"avatar_url":"https://avatars2.githubusercontent.com/u/68232?v=4","gravatar_id":"","url":"https://api.github.com/users/rs","html_url":"https://github.com/rs","followers_url":"https://api.github.com/users/rs/followers","following_url":"https://api.github.com/users/rs/following{/other_user}","gists_url":"https://api.github.com/users/rs/gists{/gist_id}","starred_url":"https://api.github.com/users/rs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rs/subscriptions","organizations_url":"https://api.github.com/users/rs/orgs","repos_url":"https://api.github.com/users/rs/repos","events_url":"https://api.github.com/users/rs/events{/privacy}","received_events_url":"https://api.github.com/users/rs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rs/cors","description":"Go net/http configurable handler to handle CORS requests","fork":false,"url":"https://api.github.com/repos/rs/cors","forks_url":"https://api.github.com/repos/rs/cors/forks","keys_url":"https://api.github.com/repos/rs/cors/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rs/cors/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rs/cors/teams","hooks_url":"https://api.github.com/repos/rs/cors/hooks","issue_events_url":"https://api.github.com/repos/rs/cors/issues/events{/number}","events_url":"https://api.github.com/repos/rs/cors/events","assignees_url":"https://api.github.com/repos/rs/cors/assignees{/user}","branches_url":"https://api.github.com/repos/rs/cors/branches{/branch}","tags_url":"https://api.github.com/repos/rs/cors/tags","blobs_url":"https://api.github.com/repos/rs/cors/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rs/cors/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rs/cors/git/refs{/sha}","trees_url":"https://api.github.com/repos/rs/cors/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rs/cors/statuses/{sha}","languages_url":"https://api.github.com/repos/rs/cors/languages","stargazers_url":"https://api.github.com/repos/rs/cors/stargazers","contributors_url":"https://api.github.com/repos/rs/cors/contributors","subscribers_url":"https://api.github.com/repos/rs/cors/subscribers","subscription_url":"https://api.github.com/repos/rs/cors/subscription","commits_url":"https://api.github.com/repos/rs/cors/commits{/sha}","git_commits_url":"https://api.github.com/repos/rs/cors/git/commits{/sha}","comments_url":"https://api.github.com/repos/rs/cors/comments{/number}","issue_comment_url":"https://api.github.com/repos/rs/cors/issues/comments{/number}","contents_url":"https://api.github.com/repos/rs/cors/contents/{+path}","compare_url":"https://api.github.com/repos/rs/cors/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rs/cors/merges","archive_url":"https://api.github.com/repos/rs/cors/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rs/cors/downloads","issues_url":"https://api.github.com/repos/rs/cors/issues{/number}","pulls_url":"https://api.github.com/repos/rs/cors/pulls{/number}","milestones_url":"https://api.github.com/repos/rs/cors/milestones{/number}","notifications_url":"https://api.github.com/repos/rs/cors/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rs/cors/labels{/name}","releases_url":"https://api.github.com/repos/rs/cors/releases{/id}","deployments_url":"https://api.github.com/repos/rs/cors/deployments","created_at":"2014-10-25T03:49:45Z","updated_at":"2018-02-24T06:38:18Z","pushed_at":"2018-02-22T17:36:16Z","git_url":"git://github.com/rs/cors.git","ssh_url":"git@github.com:rs/cors.git","clone_url":"https://github.com/rs/cors.git","svn_url":"https://github.com/rs/cors","homepage":null,"size":70,"stargazers_count":695,"watchers_count":695,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":64,"open_issues":6,"watchers":695,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rs/cors/pulls/50"},"html":{"href":"https://github.com/rs/cors/pull/50"},"issue":{"href":"https://api.github.com/repos/rs/cors/issues/50"},"comments":{"href":"https://api.github.com/repos/rs/cors/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/rs/cors/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/rs/cors/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rs/cors/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/rs/cors/statuses/af0eb6a56722760b239a5e2bb9739a3f8c1e548e"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":20,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"orangejulius"}}