-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: ALB with multiValueHeaders will not return correct CORS headers in OPTIONS preflight #4327
Comments
Hi @Wurstnase! Thanks for opening this issue! I'm adding this to the backlog and an alert on my calendar to check next week. |
Hey @Wurstnase! I created a PR to fix this issue - #4385 Thanks for bringing an idea on how to solve this problem. I had to make some additional debugging to ensure that it works with all of our Can you pls review the PR and let me know if you have any other feedback. I'm looking forward to getting this fix merged and deployed to production. 🚀 |
|
This is now released under 2.39.0 version! |
Expected Behaviour
An OPTIONS preflight should return all "Access-Control-*" headers.
Current Behaviour
powertools-lambda-python/aws_lambda_powertools/event_handler/api_gateway.py
Line 2132 in 87d580a
will only fetch
"headers"
from the event. This will returnNone
in an ALBEvent withmultiValueHeaders
enabled.Code snippet
Possible Solution
Steps to Reproduce
Powertools for AWS Lambda (Python) version
latest
AWS Lambda function runtime
3.12
Packaging format used
Lambda Layers
Debugging logs
No response
The text was updated successfully, but these errors were encountered: