mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 12:05:57 +01:00
closes #1616
This commit is contained in:
@@ -214,8 +214,13 @@ module.exports = function(app, data) {
|
|||||||
|
|
||||||
app.use(function (req, res, next) {
|
app.use(function (req, res, next) {
|
||||||
res.locals.csrf_token = req.session._csrf;
|
res.locals.csrf_token = req.session._csrf;
|
||||||
res.setHeader('X-Frame-Options', 'SAMEORIGIN');
|
|
||||||
res.setHeader('X-Powered-By', 'NodeBB');
|
res.setHeader('X-Powered-By', 'NodeBB');
|
||||||
|
|
||||||
|
res.setHeader('X-Frame-Options', 'SAMEORIGIN');
|
||||||
|
if (meta.config['allow-from-uri']) {
|
||||||
|
res.setHeader('ALLOW-FROM', meta.config['allow-from-uri']);
|
||||||
|
}
|
||||||
|
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user