Skip to content

Commit d65ec61

Browse files
security check
1 parent 7e8d806 commit d65ec61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cdk/lib/amplify-stack.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export class AmplifyStack extends cdk.Stack {
7676
});
7777

7878
amplifyApp.addCustomRule({
79-
source: "/<*>",
79+
source: "</^[^.]+$|.(?!(css|gif|ico|jpg|js|png|txt|svg|woff|woff2|ttf|map|json|webp)$)([^.]+$)/>",
8080
target: "/",
8181
status: RedirectStatus.NOT_FOUND_REWRITE,
8282
});

0 commit comments

Comments
 (0)