Fixed web-font cross-origin issue

This commit is contained in:
benweet 2014-06-09 17:37:04 +01:00
parent 0636ad1c44
commit 68007423b0

View File

@ -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();
}
});