mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Sandbox iframe
This commit is contained in:
parent
1e3950cd1d
commit
59e89a0daf
@ -77,7 +77,11 @@ export class HuiIframeCard extends LitElement implements LovelaceCard {
|
|||||||
"padding-top": padding,
|
"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>
|
</div>
|
||||||
</ha-card>
|
</ha-card>
|
||||||
`;
|
`;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user