Closed SeriesOfUnlikelyExplanations closed 2 years ago
@jeremydaly - Do you mind taking a look at this one? I believe it has something to do with how Node overwrites duplicate values when creating an object.
Figured it out. Needed to send multiValueHeaders in the request to get multiValueHeaders in the response.
Hi - I am writing a script that will allow me to run a lambda-api program locally (without using SAM, etc). Here is what I have so far: https://github.com/SeriesOfUnlikelyExplanations/always-onward/blob/main/local.js
It's working great, except for a weird issue where I only get one cookie in the response despite setting 3 cookies in the lamba-api response. When I deploy it, I get all three cookies back - so it is working as expected through cloudfront/api gateway.
Any ideas on how I can get all three cookies back when I run locally?
Thanks, Tom