Skip to content

Two issues related to cookies #328

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

Open
xiaobc1234 opened this issue Dec 27, 2024 · 0 comments
Open

Two issues related to cookies #328

xiaobc1234 opened this issue Dec 27, 2024 · 0 comments

Comments

@xiaobc1234
Copy link

2 questions:
First:
In react-native, as long as the interface returns a set-cookie header, the custom cookie in headers:{cookie:'xxx'} will become invalid and will be overwritten by the last set-cookie

Solution: Turn off withCredentials for the custom cookie to take effect
withCredentials: false

Second:
When the server interface returns two set-cookie headers, the cookie obtained by rn through res.headers['set-cookie'] is separated by ", ", and the cookie format does not seem to be the correct format. In theory, it should be merged with "; "

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

No branches or pull requests

1 participant