remix-aws icon indicating copy to clipboard operation
remix-aws copied to clipboard

fix(api-gateway-v2): remove duplicate cookies for function URLs

Open THOUSAND-SKY opened this issue 2 years ago • 1 comments

Function URLs get cookies twice, in headers and the cookies array, which was causing them to duplicate. This will overwrite rather than duplicate.

Ref: https://github.com/awslabs/aws-lambda-rust-runtime/pull/586

Function URLs use the same apigatewayv2 payload otherwise.

THOUSAND-SKY avatar Jan 08 '24 08:01 THOUSAND-SKY

Today function my remix app behind a function URL broke for me suddenly. It seems to me that AWS started escaping the rawQueryString. I don't know why they'd suddenly change stuff like that.

I added another commit here just for visibility; I am not sure the cookie one is needed anymore (but doesn't hurt).

THOUSAND-SKY avatar Apr 09 '24 23:04 THOUSAND-SKY