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

Implement Set-Cookie handling #1472

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LinusU
Copy link

@LinusU LinusU commented Oct 15, 2024

Fixes #1384

Specification: https://fetch.spec.whatwg.org/#dom-headers-getsetcookie

Why is this needed since the browsers doesn't expose Set-Cookie? React Native is using this polyfill to provide fetch, and it does expose the Set-Cookie header.


An alternative implementation would be to store the set-cookie headers separately from the map variable. Please let me know if you would prefer that, and I'll update the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set-Cookie headers should not be combined / Support Headers.getSetCookie() method
1 participant