Fixed web-font cross-origin issue
This commit is contained in:
parent
0636ad1c44
commit
68007423b0
@ -11,6 +11,7 @@ app.all('*', function(req, res, next) {
|
|||||||
res.redirect('https://stackedit.io' + req.url);
|
res.redirect('https://stackedit.io' + req.url);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
/\.(eot|ttf|woff)$/.test(req.url) && res.header('Access-Control-Allow-Origin', '*');
|
||||||
next();
|
next();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user