Breaking: Cross-Origin-Embedder-Policy middleware is now disabled by default. See #​411
isekai-main
Barış Soner Uşaklı 2 years ago
parent 90e53177fc
commit ad1ae29105

@ -67,7 +67,7 @@
"file-loader": "6.2.0", "file-loader": "6.2.0",
"fs-extra": "11.1.1", "fs-extra": "11.1.1",
"graceful-fs": "4.2.11", "graceful-fs": "4.2.11",
"helmet": "6.2.0", "helmet": "7.0.0",
"html-to-text": "9.0.5", "html-to-text": "9.0.5",
"ipaddr.js": "2.0.1", "ipaddr.js": "2.0.1",
"jquery": "3.6.4", "jquery": "3.6.4",

@ -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'],

Loading…
Cancel
Save