File tree Expand file tree Collapse file tree
vscode-extension/src/webview Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ function buildBridgeHtml(): string {
4141 </style>
4242</head>
4343<body>
44- <iframe id="qm" src="${ QUICKMOCK_URL } " allow="clipboard-read; clipboard-write"></iframe>
44+ <iframe id="qm" src="${ QUICKMOCK_URL } " sandbox="allow-scripts allow-same-origin" allow="clipboard-read; clipboard-write"></iframe>
4545 <script>
4646 window.__qmReady = false
4747 window.__renderComplete = false
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ const appOrigin = new URL(appUrl).origin;
99
1010const iframe = document . createElement ( 'iframe' ) ;
1111iframe . src = appUrl ;
12+ iframe . setAttribute (
13+ 'sandbox' ,
14+ 'allow-scripts allow-same-origin allow-downloads'
15+ ) ;
1216iframe . allow = 'clipboard-read; clipboard-write' ;
1317iframe . title = 'QuickMock Application' ;
1418document . body . appendChild ( iframe ) ;
You can’t perform that action at this time.
0 commit comments