Skip to content

Set (send) cookies server side like in Express.js via ctx.res.cookie #11843

@slava-lu

Description

@slava-lu

Feature request

There is no easy way to send cookies from the server in next.js, You can get cookies via ctx.req.headers.cookie so one would expect to send them via ctx.res.[headers].cookie in getInitialProps similar to express.js

Is it something on your radar? Or can you recommended a third party lib to do that?

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