Skip to content

Commit b982db7

Browse files
committed
adds header with produc tname
1 parent a064baa commit b982db7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

services/static-webserver/client/source/class/osparc/data/model/IframeHandler.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,13 @@ qx.Class.define("osparc.data.model.IframeHandler", {
329329
if (osparc.utils.Utils.isDevelopmentPlatform()) {
330330
console.log("Connecting: about to fetch", srvUrl);
331331
}
332-
fetch(srvUrl, {credentials: "include"})
332+
333+
const productName = qx.core.Environment.get("product.name");
334+
335+
fetch(srvUrl, {
336+
credentials: "include",
337+
headers: productName ? { "X-Simcore-Products-Name": productName } : {}
338+
})
333339
.then(response => {
334340
if (osparc.utils.Utils.isDevelopmentPlatform()) {
335341
console.log("Connecting: fetch's response status", response.status);

0 commit comments

Comments
 (0)