Add additional CSP protection to files.get endpoint

This commit is contained in:
Tom Moor committed 2025-04-23 21:44:34 -04:00
1 parent 6a12822829
commit fc580de602
1 file changed
+1
+1
View File
@@ -96,6 +96,7 @@ router.get(
ctx.set("Accept-Ranges", "bytes");
ctx.set("Cache-Control", cacheHeader);
ctx.set("Content-Type", contentType);
ctx.set("Content-Security-Policy", "sandbox");
ctx.attachment(fileName, {
type: forceDownload
? "attachment"