Skip to content

Commit

Permalink
Merge pull request thelounge#683 from thelounge/xpaw/fix-csp-edge
Browse files Browse the repository at this point in the history
Fix loading fonts in Microsoft Edge
  • Loading branch information
astorije authored Oct 9, 2016
2 parents 59b3093 + b94a922 commit f6e1bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit f6e1bd6

Please sign in to comment.