File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 1+ Resources :
2+ GatewayResponseDefault4XX :
3+ Type : ' AWS::ApiGateway::GatewayResponse'
4+ Properties :
5+ ResponseParameters :
6+ gatewayresponse.header.Access-Control-Allow-Origin : " '*'"
7+ gatewayresponse.header.Access-Control-Allow-Headers : " '*'"
8+ ResponseType : DEFAULT_4XX
9+ RestApiId :
10+ Ref : ' ApiGatewayRestApi'
11+ GatewayResponseDefault5XX :
12+ Type : ' AWS::ApiGateway::GatewayResponse'
13+ Properties :
14+ ResponseParameters :
15+ gatewayresponse.header.Access-Control-Allow-Origin : " '*'"
16+ gatewayresponse.header.Access-Control-Allow-Headers : " '*'"
17+ ResponseType : DEFAULT_5XX
18+ RestApiId :
19+ Ref : ' ApiGatewayRestApi'
Original file line number Diff line number Diff line change @@ -91,3 +91,8 @@ functions:
9191 method : delete
9292 cors : true
9393 authorizer : aws_iam
94+
95+ # Create our resources with separate CloudFormation templates
96+ resources :
97+ # API Gateway Errors
98+ - ${file(resources/api-gateway-errors.yml)}
You can’t perform that action at this time.
0 commit comments