Skip to content

Commit 1864951

Browse files
committed
fix: use sandbox CSP for file previews
1 parent 427e99c commit 1864951

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/src/file/file.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class FileController {
7878
"Content-Type":
7979
mime?.lookup?.(file.metaData.name) || "application/octet-stream",
8080
"Content-Length": file.metaData.size,
81-
"Content-Security-Policy": "script-src 'none'",
81+
"Content-Security-Policy": "sandbox",
8282
};
8383

8484
if (download === "true") {

0 commit comments

Comments
 (0)