Index: lams_build/conf/whiteboard/src/js/main.js =================================================================== diff -u -r709049f023d1033d4ef6ec198b08c4e2f94e421a -r6583579862c8623515c9861dd8edec09b6d1898f --- lams_build/conf/whiteboard/src/js/main.js (.../main.js) (revision 709049f023d1033d4ef6ec198b08c4e2f94e421a) +++ lams_build/conf/whiteboard/src/js/main.js (.../main.js) (revision 6583579862c8623515c9861dd8edec09b6d1898f) @@ -37,6 +37,7 @@ const myUsername = urlParams.get("username") || "unknown" + (Math.random() + "").substring(2, 6); const accessToken = urlParams.get("accesstoken") || ""; const copyfromwid = urlParams.get("copyfromwid") || ""; +const copyaccesstoken = urlParams.get("copyaccesstoken") || ""; // Custom Html Title const title = urlParams.get("title"); @@ -176,7 +177,10 @@ // Copy from witheboard if current is empty and get parameter is given $.get(subdir + "/api/loadwhiteboard", { wid: copyfromwid, - at: accessToken, + // needed for checking hash + targetWid: whiteboardId, + // this is not the main access token, but a special one just for this operation + at: copyaccesstoken, }).done(function (originalData) { console.log(originalData); console.log(data);