mirror of
https://github.com/outline/outline.git
synced 2026-12-05 02:44:34 +03:00
Add additional CSP protection to files.get endpoint
This commit is contained in:
1 file changed
+1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user