{"action":"opened","number":215,"pull_request":{"url":"https://api.github.com/repos/lepture/flask-wtf/pulls/215","id":54180511,"html_url":"https://github.com/lepture/flask-wtf/pull/215","diff_url":"https://github.com/lepture/flask-wtf/pull/215.diff","patch_url":"https://github.com/lepture/flask-wtf/pull/215.patch","issue_url":"https://api.github.com/repos/lepture/flask-wtf/issues/215","number":215,"state":"open","locked":false,"title":"Append `X-XSRF-Token` to `WTF_CSRF_HEADERS`.","user":{"login":"soasme","id":369081,"avatar_url":"https://avatars.githubusercontent.com/u/369081?v=3","gravatar_id":"","url":"https://api.github.com/users/soasme","html_url":"https://github.com/soasme","followers_url":"https://api.github.com/users/soasme/followers","following_url":"https://api.github.com/users/soasme/following{/other_user}","gists_url":"https://api.github.com/users/soasme/gists{/gist_id}","starred_url":"https://api.github.com/users/soasme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soasme/subscriptions","organizations_url":"https://api.github.com/users/soasme/orgs","repos_url":"https://api.github.com/users/soasme/repos","events_url":"https://api.github.com/users/soasme/events{/privacy}","received_events_url":"https://api.github.com/users/soasme/received_events","type":"User","site_admin":false},"body":"In angular, when performing XHR requests, the $http service\r\nreads a token from a cookie (by default, `XSRF-TOKEN`) and sets\r\nit as an HTTP header `X-XSRF-TOKEN`.\r\n\r\nSource: https://docs.angularjs.org/api/ng/service/$http","created_at":"2015-12-19T15:26:42Z","updated_at":"2015-12-19T15:26:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lepture/flask-wtf/pulls/215/commits","review_comments_url":"https://api.github.com/repos/lepture/flask-wtf/pulls/215/comments","review_comment_url":"https://api.github.com/repos/lepture/flask-wtf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lepture/flask-wtf/issues/215/comments","statuses_url":"https://api.github.com/repos/lepture/flask-wtf/statuses/9feaeaa162de71f2101b433912bbf57578802cff","head":{"label":"soasme:master","ref":"master","sha":"9feaeaa162de71f2101b433912bbf57578802cff","user":{"login":"soasme","id":369081,"avatar_url":"https://avatars.githubusercontent.com/u/369081?v=3","gravatar_id":"","url":"https://api.github.com/users/soasme","html_url":"https://github.com/soasme","followers_url":"https://api.github.com/users/soasme/followers","following_url":"https://api.github.com/users/soasme/following{/other_user}","gists_url":"https://api.github.com/users/soasme/gists{/gist_id}","starred_url":"https://api.github.com/users/soasme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soasme/subscriptions","organizations_url":"https://api.github.com/users/soasme/orgs","repos_url":"https://api.github.com/users/soasme/repos","events_url":"https://api.github.com/users/soasme/events{/privacy}","received_events_url":"https://api.github.com/users/soasme/received_events","type":"User","site_admin":false},"repo":{"id":48286655,"name":"flask-wtf","full_name":"soasme/flask-wtf","owner":{"login":"soasme","id":369081,"avatar_url":"https://avatars.githubusercontent.com/u/369081?v=3","gravatar_id":"","url":"https://api.github.com/users/soasme","html_url":"https://github.com/soasme","followers_url":"https://api.github.com/users/soasme/followers","following_url":"https://api.github.com/users/soasme/following{/other_user}","gists_url":"https://api.github.com/users/soasme/gists{/gist_id}","starred_url":"https://api.github.com/users/soasme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soasme/subscriptions","organizations_url":"https://api.github.com/users/soasme/orgs","repos_url":"https://api.github.com/users/soasme/repos","events_url":"https://api.github.com/users/soasme/events{/privacy}","received_events_url":"https://api.github.com/users/soasme/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/soasme/flask-wtf","description":"Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration.","fork":true,"url":"https://api.github.com/repos/soasme/flask-wtf","forks_url":"https://api.github.com/repos/soasme/flask-wtf/forks","keys_url":"https://api.github.com/repos/soasme/flask-wtf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soasme/flask-wtf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soasme/flask-wtf/teams","hooks_url":"https://api.github.com/repos/soasme/flask-wtf/hooks","issue_events_url":"https://api.github.com/repos/soasme/flask-wtf/issues/events{/number}","events_url":"https://api.github.com/repos/soasme/flask-wtf/events","assignees_url":"https://api.github.com/repos/soasme/flask-wtf/assignees{/user}","branches_url":"https://api.github.com/repos/soasme/flask-wtf/branches{/branch}","tags_url":"https://api.github.com/repos/soasme/flask-wtf/tags","blobs_url":"https://api.github.com/repos/soasme/flask-wtf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soasme/flask-wtf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soasme/flask-wtf/git/refs{/sha}","trees_url":"https://api.github.com/repos/soasme/flask-wtf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soasme/flask-wtf/statuses/{sha}","languages_url":"https://api.github.com/repos/soasme/flask-wtf/languages","stargazers_url":"https://api.github.com/repos/soasme/flask-wtf/stargazers","contributors_url":"https://api.github.com/repos/soasme/flask-wtf/contributors","subscribers_url":"https://api.github.com/repos/soasme/flask-wtf/subscribers","subscription_url":"https://api.github.com/repos/soasme/flask-wtf/subscription","commits_url":"https://api.github.com/repos/soasme/flask-wtf/commits{/sha}","git_commits_url":"https://api.github.com/repos/soasme/flask-wtf/git/commits{/sha}","comments_url":"https://api.github.com/repos/soasme/flask-wtf/comments{/number}","issue_comment_url":"https://api.github.com/repos/soasme/flask-wtf/issues/comments{/number}","contents_url":"https://api.github.com/repos/soasme/flask-wtf/contents/{+path}","compare_url":"https://api.github.com/repos/soasme/flask-wtf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soasme/flask-wtf/merges","archive_url":"https://api.github.com/repos/soasme/flask-wtf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soasme/flask-wtf/downloads","issues_url":"https://api.github.com/repos/soasme/flask-wtf/issues{/number}","pulls_url":"https://api.github.com/repos/soasme/flask-wtf/pulls{/number}","milestones_url":"https://api.github.com/repos/soasme/flask-wtf/milestones{/number}","notifications_url":"https://api.github.com/repos/soasme/flask-wtf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soasme/flask-wtf/labels{/name}","releases_url":"https://api.github.com/repos/soasme/flask-wtf/releases{/id}","created_at":"2015-12-19T15:20:52Z","updated_at":"2015-12-19T15:20:53Z","pushed_at":"2015-12-19T15:25:45Z","git_url":"git://github.com/soasme/flask-wtf.git","ssh_url":"git@github.com:soasme/flask-wtf.git","clone_url":"https://github.com/soasme/flask-wtf.git","svn_url":"https://github.com/soasme/flask-wtf","homepage":"https://flask-wtf.readthedocs.org/","size":766,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lepture:master","ref":"master","sha":"3c9dcf5cc512f023fb9b1a69a6c185c37f430f9c","user":{"login":"lepture","id":290496,"avatar_url":"https://avatars.githubusercontent.com/u/290496?v=3","gravatar_id":"","url":"https://api.github.com/users/lepture","html_url":"https://github.com/lepture","followers_url":"https://api.github.com/users/lepture/followers","following_url":"https://api.github.com/users/lepture/following{/other_user}","gists_url":"https://api.github.com/users/lepture/gists{/gist_id}","starred_url":"https://api.github.com/users/lepture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepture/subscriptions","organizations_url":"https://api.github.com/users/lepture/orgs","repos_url":"https://api.github.com/users/lepture/repos","events_url":"https://api.github.com/users/lepture/events{/privacy}","received_events_url":"https://api.github.com/users/lepture/received_events","type":"User","site_admin":false},"repo":{"id":3583552,"name":"flask-wtf","full_name":"lepture/flask-wtf","owner":{"login":"lepture","id":290496,"avatar_url":"https://avatars.githubusercontent.com/u/290496?v=3","gravatar_id":"","url":"https://api.github.com/users/lepture","html_url":"https://github.com/lepture","followers_url":"https://api.github.com/users/lepture/followers","following_url":"https://api.github.com/users/lepture/following{/other_user}","gists_url":"https://api.github.com/users/lepture/gists{/gist_id}","starred_url":"https://api.github.com/users/lepture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lepture/subscriptions","organizations_url":"https://api.github.com/users/lepture/orgs","repos_url":"https://api.github.com/users/lepture/repos","events_url":"https://api.github.com/users/lepture/events{/privacy}","received_events_url":"https://api.github.com/users/lepture/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lepture/flask-wtf","description":"Simple integration of Flask and WTForms, including CSRF, file upload and Recaptcha integration.","fork":false,"url":"https://api.github.com/repos/lepture/flask-wtf","forks_url":"https://api.github.com/repos/lepture/flask-wtf/forks","keys_url":"https://api.github.com/repos/lepture/flask-wtf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lepture/flask-wtf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lepture/flask-wtf/teams","hooks_url":"https://api.github.com/repos/lepture/flask-wtf/hooks","issue_events_url":"https://api.github.com/repos/lepture/flask-wtf/issues/events{/number}","events_url":"https://api.github.com/repos/lepture/flask-wtf/events","assignees_url":"https://api.github.com/repos/lepture/flask-wtf/assignees{/user}","branches_url":"https://api.github.com/repos/lepture/flask-wtf/branches{/branch}","tags_url":"https://api.github.com/repos/lepture/flask-wtf/tags","blobs_url":"https://api.github.com/repos/lepture/flask-wtf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lepture/flask-wtf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lepture/flask-wtf/git/refs{/sha}","trees_url":"https://api.github.com/repos/lepture/flask-wtf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lepture/flask-wtf/statuses/{sha}","languages_url":"https://api.github.com/repos/lepture/flask-wtf/languages","stargazers_url":"https://api.github.com/repos/lepture/flask-wtf/stargazers","contributors_url":"https://api.github.com/repos/lepture/flask-wtf/contributors","subscribers_url":"https://api.github.com/repos/lepture/flask-wtf/subscribers","subscription_url":"https://api.github.com/repos/lepture/flask-wtf/subscription","commits_url":"https://api.github.com/repos/lepture/flask-wtf/commits{/sha}","git_commits_url":"https://api.github.com/repos/lepture/flask-wtf/git/commits{/sha}","comments_url":"https://api.github.com/repos/lepture/flask-wtf/comments{/number}","issue_comment_url":"https://api.github.com/repos/lepture/flask-wtf/issues/comments{/number}","contents_url":"https://api.github.com/repos/lepture/flask-wtf/contents/{+path}","compare_url":"https://api.github.com/repos/lepture/flask-wtf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lepture/flask-wtf/merges","archive_url":"https://api.github.com/repos/lepture/flask-wtf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lepture/flask-wtf/downloads","issues_url":"https://api.github.com/repos/lepture/flask-wtf/issues{/number}","pulls_url":"https://api.github.com/repos/lepture/flask-wtf/pulls{/number}","milestones_url":"https://api.github.com/repos/lepture/flask-wtf/milestones{/number}","notifications_url":"https://api.github.com/repos/lepture/flask-wtf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lepture/flask-wtf/labels{/name}","releases_url":"https://api.github.com/repos/lepture/flask-wtf/releases{/id}","created_at":"2012-02-29T16:38:52Z","updated_at":"2015-12-17T03:34:14Z","pushed_at":"2015-12-12T03:15:59Z","git_url":"git://github.com/lepture/flask-wtf.git","ssh_url":"git@github.com:lepture/flask-wtf.git","clone_url":"https://github.com/lepture/flask-wtf.git","svn_url":"https://github.com/lepture/flask-wtf","homepage":"https://flask-wtf.readthedocs.org/","size":993,"stargazers_count":388,"watchers_count":388,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":117,"mirror_url":null,"open_issues_count":29,"forks":117,"open_issues":29,"watchers":388,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lepture/flask-wtf/pulls/215"},"html":{"href":"https://github.com/lepture/flask-wtf/pull/215"},"issue":{"href":"https://api.github.com/repos/lepture/flask-wtf/issues/215"},"comments":{"href":"https://api.github.com/repos/lepture/flask-wtf/issues/215/comments"},"review_comments":{"href":"https://api.github.com/repos/lepture/flask-wtf/pulls/215/comments"},"review_comment":{"href":"https://api.github.com/repos/lepture/flask-wtf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lepture/flask-wtf/pulls/215/commits"},"statuses":{"href":"https://api.github.com/repos/lepture/flask-wtf/statuses/9feaeaa162de71f2101b433912bbf57578802cff"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}