Skip to content

Commit 798d7a2

Browse files
authored
fix: CWE-285 in API Gateway (#1017)
1 parent ec75fd8 commit 798d7a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/cdk/lib/construct

packages/cdk/lib/construct/api.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ export class Api extends Construct {
674674
allowMethods: Cors.ALL_METHODS,
675675
},
676676
cloudWatchRole: true,
677+
defaultMethodOptions: commonAuthorizerProps,
677678
});
678679

679680
api.addGatewayResponse('Api4XX', {

0 commit comments

Comments
 (0)