Created
October 26, 2019 01:06
-
-
Save uris77/2ac098781829584d214e9a2ff7b25b36 to your computer and use it in GitHub Desktop.
API Gateway: Configure Response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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