{"action":"created","issue":{"url":"https://api.github.com/repos/axios/axios/issues/1553","repository_url":"https://api.github.com/repos/axios/axios","labels_url":"https://api.github.com/repos/axios/axios/issues/1553/labels{/name}","comments_url":"https://api.github.com/repos/axios/axios/issues/1553/comments","events_url":"https://api.github.com/repos/axios/axios/issues/1553/events","html_url":"https://github.com/axios/axios/issues/1553","id":324741143,"number":1553,"title":"Cookies headers is present but Cookies are not stored in browser","user":{"login":"Tarasovych","id":24782123,"avatar_url":"https://avatars2.githubusercontent.com/u/24782123?v=4","gravatar_id":"","url":"https://api.github.com/users/Tarasovych","html_url":"https://github.com/Tarasovych","followers_url":"https://api.github.com/users/Tarasovych/followers","following_url":"https://api.github.com/users/Tarasovych/following{/other_user}","gists_url":"https://api.github.com/users/Tarasovych/gists{/gist_id}","starred_url":"https://api.github.com/users/Tarasovych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tarasovych/subscriptions","organizations_url":"https://api.github.com/users/Tarasovych/orgs","repos_url":"https://api.github.com/users/Tarasovych/repos","events_url":"https://api.github.com/users/Tarasovych/events{/privacy}","received_events_url":"https://api.github.com/users/Tarasovych/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-20T20:44:25Z","updated_at":"2018-05-25T08:44:02Z","closed_at":null,"author_association":"NONE","body":"I'm making cross-domain request between two subdomains: `sub1.local` and `sub2.local`. Both are on local, as you see.\r\n\r\nSo I send `POST` from `sub1.local` to `sub2.local`.\r\nI recevie Cookie header: `Set-Cookie: name=value; expires=Sun, 20-May-2018 21:38:08 GMT; Max-Age=3600; path=/; domain=.local`.\r\nBut there is no Cookie in browser storage.\r\n\r\nAll response headers:\r\n```\r\nHTTP/1.1 200 OK\r\nDate: Sun, 20 May 2018 20:43:05 GMT\r\nServer: Apache\r\nSet-Cookie: name=value; expires=Sun, 20-May-2018 21:43:05 GMT; Max-Age=3600; path=/; domain=.local\r\nCache-Control: no-cache, private\r\nAccess-Control-Allow-Origin: http://sub1.local:8080\r\nVary: Origin\r\nX-RateLimit-Limit: 60\r\nX-RateLimit-Remaining: 59\r\nContent-Length: 2\r\nKeep-Alive: timeout=10, max=100\r\nConnection: Keep-Alive\r\nContent-Type: text/html; charset=UTF-8\r\n```\r\n\r\nWhat can be wrong?\r\n\r\nI've tried add `withCredentials: true` after reading [this question](https://stackoverflow.com/questions/22432616/why-is-the-browser-not-setting-cookies-after-an-ajax-request-returns) - didn't helped."},"comment":{"url":"https://api.github.com/repos/axios/axios/issues/comments/391985017","html_url":"https://github.com/axios/axios/issues/1553#issuecomment-391985017","issue_url":"https://api.github.com/repos/axios/axios/issues/1553","id":391985017,"user":{"login":"Tarasovych","id":24782123,"avatar_url":"https://avatars2.githubusercontent.com/u/24782123?v=4","gravatar_id":"","url":"https://api.github.com/users/Tarasovych","html_url":"https://github.com/Tarasovych","followers_url":"https://api.github.com/users/Tarasovych/followers","following_url":"https://api.github.com/users/Tarasovych/following{/other_user}","gists_url":"https://api.github.com/users/Tarasovych/gists{/gist_id}","starred_url":"https://api.github.com/users/Tarasovych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tarasovych/subscriptions","organizations_url":"https://api.github.com/users/Tarasovych/orgs","repos_url":"https://api.github.com/users/Tarasovych/repos","events_url":"https://api.github.com/users/Tarasovych/events{/privacy}","received_events_url":"https://api.github.com/users/Tarasovych/received_events","type":"User","site_admin":false},"created_at":"2018-05-25T08:44:02Z","updated_at":"2018-05-25T08:44:02Z","author_association":"NONE","body":"I've found an answer on stack about the problem that Chrome won't set Cookie if there is port in domain url. Can I remove port from domain url? I'm using vue-cli."}}
{"actor":{"display_login":"Tarasovych"}}