fix undefined safe origin

This commit is contained in:
ansuz 2022-03-14 17:43:51 +05:30
parent a54a0af604
commit 1051fc4da7
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ module.exports.create = function (config) {
NO_SANDBOX = true; NO_SANDBOX = true;
if (typeof(config.httpSafePort) !== 'number') { httpSafePort = httpPort + 1; } if (typeof(config.httpSafePort) !== 'number') { httpSafePort = httpPort + 1; }
httpSafeOrigin = deriveSandboxOrigin(httpUnsafeOrigin, httpSafePort); httpSafeOrigin = deriveSandboxOrigin(httpUnsafeOrigin, httpSafePort);
} else {
httpSafeOrigin = canonicalizeOrigin(config.httpSafeOrigin);
} }
var permittedEmbedders = config.permittedEmbedders; var permittedEmbedders = config.permittedEmbedders;