You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 "; "
The text was updated successfully, but these errors were encountered:
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 "; "
The text was updated successfully, but these errors were encountered: