fix(security): resolve all critical, high, and medium security vulnerabilities
This commit is contained in:
1 parent
da26dd1c8d
commit
dc88677169
33 files changed
+438
-85
No files matched your search
@@ -137,6 +137,11 @@ export async function GET(
|
||||
responseHeaders.set('Cache-Control', 'public, max-age=31536000, s-maxage=31536000, immutable');
|
||||
responseHeaders.set('X-Content-Type-Options', 'nosniff');
|
||||
|
||||
if (contentType === 'image/svg+xml') {
|
||||
responseHeaders.set('Content-Security-Policy', "default-src 'none'; sandbox");
|
||||
responseHeaders.set('Content-Disposition', 'inline; filename="image.svg"');
|
||||
}
|
||||
|
||||
return new Response(backendRes.body, {
|
||||
status: backendRes.status,
|
||||
statusText: backendRes.statusText,
|
||||
|
||||
Reference in new issue
Block a user