Skip to content

Instantly share code, notes, and snippets.

@uris77
Created October 26, 2019 01:06
Show Gist options
  • Save uris77/2ac098781829584d214e9a2ff7b25b36 to your computer and use it in GitHub Desktop.
Save uris77/2ac098781829584d214e9a2ff7b25b36 to your computer and use it in GitHub Desktop.
API Gateway: Configure Response
Resources:
GatewayResponseDefault4XX:
Type: 'AWS::ApiGateway::GatewayResponse'
Properties:
ResponseParameters:
gatewayresponse.header.Access-Control-Allow-Origin: "'*'"
gatewayresponse.header.Access-Control-Allow-Headers: "'*'"
ResponseType: DEFAULT_4XX
RestApiId:
Ref: 'ApiGatewayRestApi'
GatewayResponseDefault5XX:
Type: 'AWS::ApiGateway::GatewayResponse'
Properties:
ResponseParameters:
gatewayresponse.header.Access-Control-Allow-Origin: "'*'"
gatewayresponse.header.Access-Control-Allow-Headers: "'*'"
ResponseType: DEFAULT_5XX
RestApiId:
Ref: 'ApiGatewayRestApi'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment