mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
added helmet for better standard of protection across the board
This commit is contained in:
@@ -11,7 +11,6 @@ module.exports = function (middleware) {
|
||||
'X-Frame-Options': meta.config['allow-from-uri'] ? 'ALLOW-FROM ' + encodeURI(meta.config['allow-from-uri']) : 'SAMEORIGIN',
|
||||
'Access-Control-Allow-Methods': encodeURI(meta.config['access-control-allow-methods'] || ''),
|
||||
'Access-Control-Allow-Headers': encodeURI(meta.config['access-control-allow-headers'] || ''),
|
||||
'Referrer-Policy': 'strict-origin-when-cross-origin', // consider using helmet?
|
||||
};
|
||||
|
||||
if (meta.config['access-control-allow-origin']) {
|
||||
|
||||
Reference in New Issue
Block a user