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

Multiple set-cookie don't end up in the final response when an ALB is the trigger #276

Open
rbhalla opened this issue May 7, 2023 · 0 comments

Comments

@rbhalla
Copy link

rbhalla commented May 7, 2023

I am using this library (v3.2.0) with an Express (4.17.1) app.

I have two routes. First route sets a single set-cookie. The second route sets multiple set-cookies.

I can confirm that the headers are there on the response by doing the following:

module.exports.handler = serverless(app, {
  response(response) {
    console.log(response)
    return response
  }
})

I have multiValueHeaders set in my serverless.yml file since I know that can be an issue here.

For some reason, in the actual response, I don't see any set-cookie headers on the second endpoint, only the first.

I have switched to serverless-express since that seems to work in my case, but thought I'd post an issue here in case it trips anyone else up.

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

No branches or pull requests

1 participant