{"action":"created","comment":{"url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/comments/60420092","id":60420092,"diff_hunk":"@@ -110,6 +112,15 @@ function createReqOpts (ctx) {\n     // NOTE: All headers, including 'content-length', are built here.\n     var headers = headerTransforms.forRequest(ctx, this);\n \n+    // NOTE: Need to remove cookie and authorization headers manually if the request is sent without credentials\n+    if (ctx.isXhr && !!ctx.req.headers[XHR_HEADERS.corsSupported] && !ctx.req.headers[XHR_HEADERS.withCredentials]) {\n+        delete headers.cookie;","path":"src/request-pipeline/index.js","position":15,"original_position":15,"commit_id":"ac2e33c9ca2cbaa4d7fbc620f45f69ca816d6df3","original_commit_id":"ac2e33c9ca2cbaa4d7fbc620f45f69ca816d6df3","user":{"login":"LavrovArtem","id":5373460,"avatar_url":"https://avatars.githubusercontent.com/u/5373460?v=3","gravatar_id":"","url":"https://api.github.com/users/LavrovArtem","html_url":"https://github.com/LavrovArtem","followers_url":"https://api.github.com/users/LavrovArtem/followers","following_url":"https://api.github.com/users/LavrovArtem/following{/other_user}","gists_url":"https://api.github.com/users/LavrovArtem/gists{/gist_id}","starred_url":"https://api.github.com/users/LavrovArtem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LavrovArtem/subscriptions","organizations_url":"https://api.github.com/users/LavrovArtem/orgs","repos_url":"https://api.github.com/users/LavrovArtem/repos","events_url":"https://api.github.com/users/LavrovArtem/events{/privacy}","received_events_url":"https://api.github.com/users/LavrovArtem/received_events","type":"User","site_admin":false},"body":"I think that this logic needs to moves to the `headers-transforms.js` like [this](https://github.com/DevExpress/testcafe-hammerhead/blob/master/src/request-pipeline/header-transforms.js#L49)\r\n\r\n","created_at":"2016-04-20T14:42:42Z","updated_at":"2016-04-20T14:42:42Z","html_url":"https://github.com/DevExpress/testcafe-hammerhead/pull/553#discussion_r60420092","pull_request_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/553","_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/comments/60420092"},"html":{"href":"https://github.com/DevExpress/testcafe-hammerhead/pull/553#discussion_r60420092"},"pull_request":{"href":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/553"}}},"pull_request":{"url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/553","id":67185194,"html_url":"https://github.com/DevExpress/testcafe-hammerhead/pull/553","diff_url":"https://github.com/DevExpress/testcafe-hammerhead/pull/553.diff","patch_url":"https://github.com/DevExpress/testcafe-hammerhead/pull/553.patch","issue_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/issues/553","number":553,"state":"open","locked":false,"title":"fix 'Xhr request without credentials should not send cookie and authorization headers to the destination server' (close #545)","user":{"login":"miherlosev","id":4133518,"avatar_url":"https://avatars.githubusercontent.com/u/4133518?v=3","gravatar_id":"","url":"https://api.github.com/users/miherlosev","html_url":"https://github.com/miherlosev","followers_url":"https://api.github.com/users/miherlosev/followers","following_url":"https://api.github.com/users/miherlosev/following{/other_user}","gists_url":"https://api.github.com/users/miherlosev/gists{/gist_id}","starred_url":"https://api.github.com/users/miherlosev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miherlosev/subscriptions","organizations_url":"https://api.github.com/users/miherlosev/orgs","repos_url":"https://api.github.com/users/miherlosev/repos","events_url":"https://api.github.com/users/miherlosev/events{/privacy}","received_events_url":"https://api.github.com/users/miherlosev/received_events","type":"User","site_admin":false},"body":"@churkin @LavrovArtem ","created_at":"2016-04-20T13:20:37Z","updated_at":"2016-04-20T14:42:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adb283a28183e31133c292bebd7dc6003d52a6aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/553/commits","review_comments_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/553/comments","review_comment_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/issues/553/comments","statuses_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/statuses/ac2e33c9ca2cbaa4d7fbc620f45f69ca816d6df3","head":{"label":"miherlosev:i_545","ref":"i_545","sha":"ac2e33c9ca2cbaa4d7fbc620f45f69ca816d6df3","user":{"login":"miherlosev","id":4133518,"avatar_url":"https://avatars.githubusercontent.com/u/4133518?v=3","gravatar_id":"","url":"https://api.github.com/users/miherlosev","html_url":"https://github.com/miherlosev","followers_url":"https://api.github.com/users/miherlosev/followers","following_url":"https://api.github.com/users/miherlosev/following{/other_user}","gists_url":"https://api.github.com/users/miherlosev/gists{/gist_id}","starred_url":"https://api.github.com/users/miherlosev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miherlosev/subscriptions","organizations_url":"https://api.github.com/users/miherlosev/orgs","repos_url":"https://api.github.com/users/miherlosev/repos","events_url":"https://api.github.com/users/miherlosev/events{/privacy}","received_events_url":"https://api.github.com/users/miherlosev/received_events","type":"User","site_admin":false},"repo":{"id":40364780,"name":"testcafe-hammerhead","full_name":"miherlosev/testcafe-hammerhead","owner":{"login":"miherlosev","id":4133518,"avatar_url":"https://avatars.githubusercontent.com/u/4133518?v=3","gravatar_id":"","url":"https://api.github.com/users/miherlosev","html_url":"https://github.com/miherlosev","followers_url":"https://api.github.com/users/miherlosev/followers","following_url":"https://api.github.com/users/miherlosev/following{/other_user}","gists_url":"https://api.github.com/users/miherlosev/gists{/gist_id}","starred_url":"https://api.github.com/users/miherlosev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miherlosev/subscriptions","organizations_url":"https://api.github.com/users/miherlosev/orgs","repos_url":"https://api.github.com/users/miherlosev/repos","events_url":"https://api.github.com/users/miherlosev/events{/privacy}","received_events_url":"https://api.github.com/users/miherlosev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miherlosev/testcafe-hammerhead","description":"","fork":true,"url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead","forks_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/forks","keys_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/teams","hooks_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/hooks","issue_events_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/issues/events{/number}","events_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/events","assignees_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/assignees{/user}","branches_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/branches{/branch}","tags_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/tags","blobs_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/git/refs{/sha}","trees_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/statuses/{sha}","languages_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/languages","stargazers_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/stargazers","contributors_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/contributors","subscribers_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/subscribers","subscription_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/subscription","commits_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/commits{/sha}","git_commits_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/git/commits{/sha}","comments_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/comments{/number}","issue_comment_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/issues/comments{/number}","contents_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/contents/{+path}","compare_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/merges","archive_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/downloads","issues_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/issues{/number}","pulls_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/pulls{/number}","milestones_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/milestones{/number}","notifications_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/labels{/name}","releases_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/releases{/id}","deployments_url":"https://api.github.com/repos/miherlosev/testcafe-hammerhead/deployments","created_at":"2015-08-07T14:37:48Z","updated_at":"2016-01-12T13:46:00Z","pushed_at":"2016-04-20T14:17:48Z","git_url":"git://github.com/miherlosev/testcafe-hammerhead.git","ssh_url":"git@github.com:miherlosev/testcafe-hammerhead.git","clone_url":"https://github.com/miherlosev/testcafe-hammerhead.git","svn_url":"https://github.com/miherlosev/testcafe-hammerhead","homepage":null,"size":2396,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"DevExpress:master","ref":"master","sha":"64e68bcdf0f07d64f674875fd5c6ce8598c5b7ff","user":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"repo":{"id":36883823,"name":"testcafe-hammerhead","full_name":"DevExpress/testcafe-hammerhead","owner":{"login":"DevExpress","id":4243232,"avatar_url":"https://avatars.githubusercontent.com/u/4243232?v=3","gravatar_id":"","url":"https://api.github.com/users/DevExpress","html_url":"https://github.com/DevExpress","followers_url":"https://api.github.com/users/DevExpress/followers","following_url":"https://api.github.com/users/DevExpress/following{/other_user}","gists_url":"https://api.github.com/users/DevExpress/gists{/gist_id}","starred_url":"https://api.github.com/users/DevExpress/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevExpress/subscriptions","organizations_url":"https://api.github.com/users/DevExpress/orgs","repos_url":"https://api.github.com/users/DevExpress/repos","events_url":"https://api.github.com/users/DevExpress/events{/privacy}","received_events_url":"https://api.github.com/users/DevExpress/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DevExpress/testcafe-hammerhead","description":"A powerful web-proxy used as a core for the TestCafe testing framework.","fork":false,"url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead","forks_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/forks","keys_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/teams","hooks_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/hooks","issue_events_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/issues/events{/number}","events_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/events","assignees_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/assignees{/user}","branches_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/branches{/branch}","tags_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/tags","blobs_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/statuses/{sha}","languages_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/languages","stargazers_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/stargazers","contributors_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/contributors","subscribers_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/subscribers","subscription_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/subscription","commits_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/contents/{+path}","compare_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/merges","archive_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/downloads","issues_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/issues{/number}","pulls_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls{/number}","milestones_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/milestones{/number}","notifications_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/labels{/name}","releases_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/releases{/id}","deployments_url":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/deployments","created_at":"2015-06-04T16:56:53Z","updated_at":"2016-01-12T08:27:46Z","pushed_at":"2016-04-20T13:20:38Z","git_url":"git://github.com/DevExpress/testcafe-hammerhead.git","ssh_url":"git@github.com:DevExpress/testcafe-hammerhead.git","clone_url":"https://github.com/DevExpress/testcafe-hammerhead.git","svn_url":"https://github.com/DevExpress/testcafe-hammerhead","homepage":"","size":2273,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":37,"forks":10,"open_issues":37,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/553"},"html":{"href":"https://github.com/DevExpress/testcafe-hammerhead/pull/553"},"issue":{"href":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/issues/553"},"comments":{"href":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/issues/553/comments"},"review_comments":{"href":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/553/comments"},"review_comment":{"href":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/pulls/553/commits"},"statuses":{"href":"https://api.github.com/repos/DevExpress/testcafe-hammerhead/statuses/ac2e33c9ca2cbaa4d7fbc620f45f69ca816d6df3"}}}}