mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2024-11-10 01:02:30 +01:00
Add object src to csp
This commit is contained in:
parent
cd66399049
commit
60a118f391
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
import {NextFunction, Request, Response} from 'express';
|
||||
|
||||
export function apiCspMiddleware(req: Request, res: Response, next: NextFunction) {
|
||||
res.header("Content-Security-Policy", "script-src 'none'");
|
||||
res.header("Content-Security-Policy", "script-src 'none'; object-src 'none'");
|
||||
next();
|
||||
}
|
Loading…
Reference in a new issue