Skip to content

Commit f5ebd1a

Browse files
committed
Fix CORS
1 parent feffd6d commit f5ebd1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

backend/src/iac/backend-stack.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,13 @@ export class BackendStack extends cdk.Stack {
466466
apigateway.ResponseType.INTEGRATION_TIMEOUT,
467467
];
468468

469-
gatewayResponseTypes.forEach(responseType => {
469+
gatewayResponseTypes.forEach((responseType) => {
470470
new apigateway.CfnGatewayResponse(
471471
this,
472-
`${appName}GatewayResponse${responseType}-${props.environment}`,
472+
`${appName}GatewayResponse-${responseType.responseType.toString()}-${props.environment}`,
473473
{
474474
restApiId: api.restApiId,
475-
responseType: responseType.toString(),
475+
responseType: responseType.responseType.toString(),
476476
responseParameters: {
477477
'gatewayresponse.header.Access-Control-Allow-Origin': "'*'",
478478
'gatewayresponse.header.Access-Control-Allow-Headers':

0 commit comments

Comments
 (0)