Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mpgr04 opened this issue Dec 9, 2020 · 1 comment

Comments

@mpgr04
Copy link

mpgr04 commented Dec 9, 2020

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!

@dougwilson
Copy link
Contributor

Hello, I'm sorry your issue sat without response. Most likely no one knew the answer off-hand. I can help, though I'm not sure either. Can you provide some way that we can reproduce the error and debug it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants