hjawwad456 commited on
Commit
ce3df77
·
1 Parent(s): 7679c88

add sandbox in iframe

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -514,6 +514,7 @@ function createIframeHandler() {
514
  iframe.style.right = '-100px';
515
  iframe.style.bottom = '-100px';
516
  iframe.style.display = 'none'; // Hidden initially
 
517
  document.body.appendChild(iframe);
518
  }
519
 
 
514
  iframe.style.right = '-100px';
515
  iframe.style.bottom = '-100px';
516
  iframe.style.display = 'none'; // Hidden initially
517
+ iframe.sandbox = "allow-storage-access-by-user-activation allow-scripts allow-same-origin";
518
  document.body.appendChild(iframe);
519
  }
520