mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 05:02:37 +01:00
Merge pull request #275 from LukasDoesDev/patch-1
This commit is contained in:
commit
9abca5e14f
@ -4,7 +4,7 @@ import { NextFunction, Request, Response } from "express";
|
|||||||
|
|
||||||
export function CORS(req: Request, res: Response, next: NextFunction) {
|
export function CORS(req: Request, res: Response, next: NextFunction) {
|
||||||
res.set("Access-Control-Allow-Origin", "*");
|
res.set("Access-Control-Allow-Origin", "*");
|
||||||
// TODO: use better CSP policy
|
// TODO: use better CSP
|
||||||
res.set(
|
res.set(
|
||||||
"Content-security-policy",
|
"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';"
|
"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';"
|
||||||
|
Loading…
Reference in New Issue
Block a user