added helmet for better standard of protection across the board

This commit is contained in:
Julian Lam
2018-02-21 14:13:20 -05:00
parent c7b73b4e41
commit 98b0bdc7e1
3 changed files with 4 additions and 1 deletions

View File

@@ -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']) {