|
|
@ -192,11 +192,9 @@ function setupHelmet(app) {
|
|
|
|
crossOriginOpenerPolicy: { policy: meta.config['cross-origin-opener-policy'] },
|
|
|
|
crossOriginOpenerPolicy: { policy: meta.config['cross-origin-opener-policy'] },
|
|
|
|
crossOriginResourcePolicy: { policy: meta.config['cross-origin-resource-policy'] },
|
|
|
|
crossOriginResourcePolicy: { policy: meta.config['cross-origin-resource-policy'] },
|
|
|
|
referrerPolicy: { policy: 'strict-origin-when-cross-origin' },
|
|
|
|
referrerPolicy: { policy: 'strict-origin-when-cross-origin' },
|
|
|
|
|
|
|
|
crossOriginEmbedderPolicy: !!meta.config['cross-origin-embedder-policy'],
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
if (!meta.config['cross-origin-embedder-policy']) {
|
|
|
|
|
|
|
|
options.crossOriginEmbedderPolicy = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (meta.config['hsts-enabled']) {
|
|
|
|
if (meta.config['hsts-enabled']) {
|
|
|
|
options.hsts = {
|
|
|
|
options.hsts = {
|
|
|
|
maxAge: meta.config['hsts-maxage'],
|
|
|
|
maxAge: meta.config['hsts-maxage'],
|
|
|
|