@remix-run/architect
duplicates cookies for Function URLs
#8450
Labels
@remix-run/architect
duplicates cookies for Function URLs
#8450
Reproduction
I believe a fix like this wingleung/remix-aws#7 is also needed for the
@remix-run/architect
package, for it to work with Function URLs proper. The problem is that function URLs get cookies in both the headers and the cookies array.An actual reproduce is quite a bit of work for me. However, if you make a lambda via the AWS console and curl it with some cookies, log the
event
, you'll see thecookies
in bothheaders.cookie
andcookies
.I can open a PR if that's a good enough fix for you folks.
System Info
Used Package Manager
pnpm
Expected Behavior
Cookies just once in lambdas behind AWS Lambda on Function URLs.
Actual Behavior
Cookies are seen twice, e.g.
_remix_session=something, _remix_session=something
and it breaksremix-auth
for example.The text was updated successfully, but these errors were encountered: