Skip to content

Commit cb59045

Browse files
committed
Fix CSP frameSrc to allow S3 and App Runner domains for iframe display
1 parent 7367f11 commit cb59045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ app.use(helmet({
2929
fontSrc: ["'self'"],
3030
objectSrc: ["'none'"],
3131
mediaSrc: ["'self'"],
32-
frameSrc: ["'none'"],
32+
frameSrc: ["'self'", "https://*.amazonaws.com", "https://*.s3.amazonaws.com", "https://*.s3.*.amazonaws.com", "https://*.awsapprunner.com"],
3333
},
3434
} : false, // Disable CSP in development
3535
}));

0 commit comments

Comments
 (0)