Merge pull request #683 from thelounge/xpaw/fix-csp-edge

Fix loading fonts in Microsoft Edge
This commit is contained in:
Jérémie Astori 2016-10-09 14:12:31 -04:00 committed by GitHub
commit 56fb04c81e

View File

@ -138,7 +138,7 @@ function index(req, res, next) {
return css.slice(0, -4);
});
var template = _.template(file);
res.setHeader("Content-Security-Policy", "default-src *; connect-src 'self' ws: wss:; style-src * 'unsafe-inline'; script-src 'self'; child-src 'none'; object-src 'none'; form-action 'none'; referrer no-referrer;");
res.setHeader("Content-Security-Policy", "default-src *; connect-src 'self' ws: wss:; style-src * 'unsafe-inline'; script-src 'self'; child-src 'self'; object-src 'none'; form-action 'none'; referrer no-referrer;");
res.setHeader("Content-Type", "text/html");
res.writeHead(200);
res.end(template(data));