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 : #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).
Setting the
GatewayResponsesproperty does not work when usinglocal 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 : #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).