Compare commits

...

1 Commits

Author SHA1 Message Date
Tom Moor fc580de602 Add additional CSP protection to files.get endpoint 2025-04-23 21:44:34 -04:00
+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"