Open ThomasJamesCrawford opened 2 years ago
I found the cause of this I addressed it in this pr: https://github.com/awslabs/aws-lambda-go-api-proxy/pull/109
But I have included probably too many changes for it to be accepted.
@aubelsb2 @ThomasJamesCrawford Also just hit this issue.. so thanks for raising. Since the existing PR hasn't seen any traction, I've raised a separate PR scoped to just supporting cookies for V2 requests - hopefully will have more luck with this 🤞
Anyone with a premium account want to try raise a support issue to get this seen to?
I merged the original PR. I will tag a new minor version shortly
Awesome, thanks - will close mine
It seems like api gateway v2 is removing the cookie header and placing them into
req.Cookies
But this isn't taken into account in the mapping
awslabs/aws-lambda-go-api-proxy/core/requestv2.go
As a result in my code I'm having to add the cookies back into the headers first
req.Headers["cookie"] = strings.Join(req.Cookies, ",")