mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
closes #1616
This commit is contained in:
@@ -214,8 +214,13 @@ module.exports = function(app, data) {
|
||||
|
||||
app.use(function (req, res, next) {
|
||||
res.locals.csrf_token = req.session._csrf;
|
||||
res.setHeader('X-Frame-Options', 'SAMEORIGIN');
|
||||
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();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user