mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
[backend] Set X-Content-Type-Options to nosniff on the drive files endpoint
This commit is contained in:
parent
cf506d3bd9
commit
41cb218aa8
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ export default async function (ctx: Koa.Context) {
|
|||
return;
|
||||
}
|
||||
|
||||
ctx.set("X-Content-Type-Options", "nosniff");
|
||||
|
||||
const isThumbnail = file.thumbnailAccessKey === key;
|
||||
const isWebpublic = file.webpublicAccessKey === key;
|
||||
|
||||
|
|
Loading…
Reference in a new issue