Hono CORS lambda duplicate headers
I'm using Hono with Lambda and managing CORS myself instead of using AWS API Gateway CORS configuration.
My code looks like
When I deploy this to AWS and do an OPTIONS request to that endpoint, I'm getting duplicate CORS headers like:
I'm unclear on what I'm doing wrong that wouldo generate these dupe headers that breaks CORS
8 Replies
I have the same problem, do you solved? @nullfox
It’s probably the loop
what loop? 😅
the
forEach
though ig i'd expect the value to just get overwrittenseems like it could be a known bug: https://github.com/honojs/hono/issues/3870
GitHub
aws-lambda duplicate headers in API Gateway V1 response · Issue #38...
What version of Hono are you using? 4.6.17 What runtime/platform is your app running on? (with version if possible) AWS Lambda/NodeJS 20 What steps can reproduce the bug? If an incoming request eve...
jesus this is my situation
rip
might be worth following up on the issue
something has moved