summary refs log tree commit diff
path: root/api/src/middlewares
diff options
context:
space:
mode:
authorLukas Does Dev <51633285+LukasDoesDev@users.noreply.github.com>2021-08-21 22:30:42 +0300
committerGitHub <noreply@github.com>2021-08-21 22:30:42 +0300
commitf49c748bb33e77a6044b96ceb4f1cdcf106ee4ab (patch)
tree74204f459ff111304ede14ef994dc5bf1111f022 /api/src/middlewares
parent:art: update bundle build (diff)
downloadserver-f49c748bb33e77a6044b96ceb4f1cdcf106ee4ab.tar.xz
Fix content security policy policy
Diffstat (limited to 'api/src/middlewares')
-rw-r--r--api/src/middlewares/CORS.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/middlewares/CORS.ts b/api/src/middlewares/CORS.ts
index 49470611..20260cf9 100644
--- a/api/src/middlewares/CORS.ts
+++ b/api/src/middlewares/CORS.ts
@@ -4,7 +4,7 @@ import { NextFunction, Request, Response } from "express";
 
 export function CORS(req: Request, res: Response, next: NextFunction) {
 	res.set("Access-Control-Allow-Origin", "*");
-	// TODO: use better CSP policy
+	// TODO: use better CSP
 	res.set(
 		"Content-security-policy",
 		"default-src *  data: blob: filesystem: about: ws: wss: 'unsafe-inline' 'unsafe-eval'; script-src * data: blob: 'unsafe-inline' 'unsafe-eval'; connect-src * data: blob: 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src * data: blob: ; style-src * data: blob: 'unsafe-inline'; font-src * data: blob: 'unsafe-inline';"