Skip to content

Bug: CORS support doe not add headers to response #5550

@dave-dotnet-overall

Description

@dave-dotnet-overall

Expected Behaviour

After following the document to enable CORS when i execute my lambda via api gateway from postman there are no CORS headers been added to the response. I have tried every documented option but to no avail, so either there is documentation missing or this is a bug

Current Behaviour

After enabling CORS i would expect to see the CORS headers been added to the response before it is sent back to the client.

Code snippet

Just copy what is in the documentation and inspect the returned headers in postman.

Possible Solution

No response

Steps to Reproduce

Just copy what is in the documentation and inspect the returned headers in postman.

Powertools for AWS Lambda (Python) version

latest

AWS Lambda function runtime

3.12

Packaging format used

Lambda Layers

Debugging logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriagePending triage from maintainers

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions