Skip to content

Commit 3e94159

Browse files
committed
allow clipboard iframe
1 parent a0d9a1d commit 3e94159

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/static-webserver/client/source/class/osparc/widget/PersistentIframe.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ qx.Class.define("osparc.widget.PersistentIframe", {
128128
top: this.self().HIDDEN_TOP
129129
});
130130
const iframeEl = this._getIframeElement();
131-
iframeEl.setAttribute("allow", "clipboard-write");
131+
const host = window.location.host;
132+
iframeEl.setAttribute("allow", `clipboard-write; clipboard-write; from *.services.${host}`);
132133

133134
const buttonContainer = this.__buttonContainer = new qx.ui.container.Composite(new qx.ui.layout.HBox(10).set({
134135
alignX: "right",

0 commit comments

Comments
 (0)