diff --git a/core/app.js b/core/app.js index 9d9a4e0e..d08df01a 100644 --- a/core/app.js +++ b/core/app.js @@ -124,6 +124,7 @@ function socket(request, response, client) { options.credentials = credentials; options.packageOwner = packageOwner; options.packageName = packageName; + options.url = message.url; let sessionId = makeSessionId(); if (blobId) { process = await core.getSessionProcessBlob(blobId, sessionId, options); diff --git a/core/client.js b/core/client.js index 38571cb8..c360809a 100644 --- a/core/client.js +++ b/core/client.js @@ -1072,6 +1072,7 @@ function connectSocket(path) { gSocket.send(JSON.stringify({ action: "hello", path: connect_path, + url: window.location.href, api: Object.entries(k_api).map(([key, value]) => [].concat([key], value.args)), })); } diff --git a/core/core.js b/core/core.js index 913cd074..83fd4879 100644 --- a/core/core.js +++ b/core/core.js @@ -315,6 +315,7 @@ async function getProcessBlob(blobId, key, options) { throw Error(`Permission denied: ${permission}.`); } }, + url: options?.url, } }; if (process.credentials?.permissions?.administration) {