Sandbox iframe

This commit is contained in:
Bram Kragten 2020-03-26 11:39:01 +01:00
parent 1e3950cd1d
commit 59e89a0daf

View File

@ -77,7 +77,11 @@ export class HuiIframeCard extends LitElement implements LovelaceCard {
"padding-top": padding,
})}"
>
<iframe src="${this._config.url}"></iframe>
<iframe
src="${this._config.url}"
sandbox="allow-forms allow-modals allow-popups allow-pointer-lock allow-same-origin allow-scripts"
allowfullscreen="true"
></iframe>
</div>
</ha-card>
`;