aws / aws/aws-sam-cli

Bug: `AWS::Serverless::Api` gateway responses are not working

Open
#9,064 0 comments 0 reactions 0 assignees View on GitHub
stage/needs-triage
Dominant language
Python
Stars
6.7k
Forks
1.2k
Avg merge
1d 10h
Merged PRs (30d)
52

Description

Setting the `GatewayResponses` property does not work when using `local start-api` (https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-resource-api.html#sam-api-gatewayresponses).

This issue from 2019 is probably related : https://github.com/aws/aws-sam-cli/issues/1027

Right now every error that originates from the Authorizer or from an unhandled lambda exception cannot have CORS headers (or any sort of customization).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.