-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookies are not set when port differs on the same domain #199
Comments
Cookies are not included in the fetch request by default: https://github.com/github/fetch#sending-cookies. |
Thanks. It turned out to be a cross domain issue cause by the |
Tho that still doesn't explain why different ports are being treated as cors. I shouldn't have to add |
Port number is a component of the same-origin policy. |
Yea. Got it, thanks |
Sorry to raise this from the dead, but I don't believe that interpretation is correct @dgraham See this RFC: https://tools.ietf.org/html/rfc6265
From this, I would expect cookies set for |
@BrendanFDMoore Your interpretation of the spec might be absolutely correct. However, our fetch polyfill does not implement anything regarding cookies, and never will. Handling of cookies is either up to the browser's native implementation of |
A request from
localhost:3000
tolocalhost:8000
will ignore cookies. Though cookies are supposed to be port agnostics. Is this an implementation issue ?The text was updated successfully, but these errors were encountered: