Skip to content

"Can't set headers after they are sent to the client" in relation to express-session #800

@mpgr04

Description

@mpgr04

Hi,
I use express-session in my application.
During the development process I set the secure option of the session cookie to false, because I don't use https locally.

But as soon as I set this option to true and want to use the application on my webserver which has https, the following error occurs:
Can't set headers after they are sent to the client

However, this only occurs on the web server and not locally.

I have already checked my code to see if multiple responses are sent in one request, but this is not the case.

I am grateful for any help!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions