examples icon indicating copy to clipboard operation
examples copied to clipboard

CORS error for ALB + Lambda

Open anjali89r opened this issue 6 years ago • 1 comments

I'm using the Lambda +ALB for by post api and is getting the CORS error when calling from a different domain where my frontend code is deployed. I did fix it when this lambda was integrated with API Gateway, but dont see any similar approach for ALb + Lambda. Can you please let me know how to fix CORS error for a path based routing in ALB which points the target to a lambda ?

anjali89r avatar Dec 28 '19 18:12 anjali89r

Same here. It looks like ALB does not like seeing CORS-related headers returned by the Lambda function.

Can someone confirm this?

antonbabenko avatar Mar 06 '20 09:03 antonbabenko