Add object src to csp

This commit is contained in:
Ajay Ramachandran 2021-05-06 16:14:11 -04:00
parent cd66399049
commit 60a118f391

View file

@ -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();
}