mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-06 09:09:58 +02:00
closes #2151
This commit is contained in:
@@ -68,10 +68,11 @@ module.exports = function(app) {
|
||||
|
||||
app.use(function (req, res, next) {
|
||||
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']);
|
||||
res.setHeader('X-Frame-Options', 'ALLOW-FROM ' + meta.config['allow-from-uri']);
|
||||
} else {
|
||||
res.setHeader('X-Frame-Options', 'SAMEORIGIN');
|
||||
}
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user