fix (embed): image embedding iframe policy

This commit is contained in:
MickaelK 2025-06-17 18:38:26 +10:00
parent 1b29b7c493
commit 9332c3b9ef

View file

@ -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;