Skip to content

[Response Headers]: set multiple headers of same key in response #771

@kamleshchandnani

Description

@kamleshchandnani

I've a node-proxy server using node-fetch to get the data from server. The server responds with multiple set-cookie header. I want to add this to the response to the client.
I first parsed using res.headers.raw()['set-cookie'] this gives me array of cookies but now I want to set it in response and I tried using set, append both of these methods just set the value in one header set-cookie separated by comma. Is there any way to have multiple set-cookie headers in response?
set-cookie: cookie1=value1
set-cookie: cookie2=value2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions