From 68007423b0ce682eddf1e789a5ffd079ca009ec8 Mon Sep 17 00:00:00 2001 From: benweet Date: Mon, 9 Jun 2014 17:37:04 +0100 Subject: [PATCH] Fixed web-font cross-origin issue --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index 87088618..a405c0c9 100644 --- a/server.js +++ b/server.js @@ -11,6 +11,7 @@ app.all('*', function(req, res, next) { res.redirect('https://stackedit.io' + req.url); } else { + /\.(eot|ttf|woff)$/.test(req.url) && res.header('Access-Control-Allow-Origin', '*'); next(); } });