mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (embed): image embedding iframe policy
This commit is contained in:
parent
1b29b7c493
commit
9332c3b9ef
1 changed files with 1 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ class FilestashImage extends HTMLElement {
|
|||
this.iframe = document.createElement("iframe");
|
||||
this.iframe.setAttribute("style", "width: 100%; height: 100%; border: none; display: block;");
|
||||
this.iframe.setAttribute("sandbox", "allow-downloads allow-scripts allow-presentation allow-forms allow-same-origin");
|
||||
this.iframe.setAttribute("referrerpolicy", "origin");
|
||||
this.shadowRoot.appendChild(this.iframe);
|
||||
|
||||
this.debounce = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue