Skip to content
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

Set-Cookie Response header not in response.headers #138

Closed
jdpagley opened this issue May 10, 2015 · 1 comment
Closed

Set-Cookie Response header not in response.headers #138

jdpagley opened this issue May 10, 2015 · 1 comment

Comments

@jdpagley
Copy link

Set-Cookie is not working with fetch.

//Response to POST request

HTTP/1.1 200 OK
X-Powered-By: Express
Content-Type: application/json; charset=utf-8
Content-Length: 113
ETag: W/"71-397a9ddd"
Set-Cookie: session=eyJ1c2VyIjp7Il9pZCI6IjE5MTlkamRrZCIsImZpcnN0TmFtZSI6Ikpvc2giLCJsYXN0TmFtZSI6IlBhZ2xleSIsImVtYWlsIjoiamRwYWdsZXlAZ21haWwuY29tIiwiY3JlYXRlZE9uIjoxNDMxMTQ4MTMxMjQ2fX0=; path=/
Set-Cookie: session.sig=ukSK6_n1uWqAbwEynmbLdtnASDo; path=/
Date: Sat, 09 May 2015 05:09:18 GMT
Connection: keep-alive
@dgraham
Copy link
Contributor

dgraham commented May 11, 2015

The Set-Cookie header is on the forbidden header list:
https://fetch.spec.whatwg.org/#forbidden-response-header-name

Responses do not include forbidden headers:
https://fetch.spec.whatwg.org/#concept-filtered-response-basic

@dgraham dgraham closed this as completed May 11, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants