Skip to content

Two issues related to cookies #328

Open
@xiaobc1234

Description

@xiaobc1234

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 "; "

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions