mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
chore(ui): disallow js in terms iframe (#3524)
This commit is contained in:
parent
a688b242ea
commit
44ef8258ff
1 changed files with 2 additions and 1 deletions
|
@ -52,7 +52,8 @@ const IframeModal = ({ className, title = '', href = '', onClose }: ModalProps)
|
||||||
<iframe
|
<iframe
|
||||||
title={title}
|
title={title}
|
||||||
src={href}
|
src={href}
|
||||||
sandbox="allow-scripts"
|
// Applies all restrictions
|
||||||
|
sandbox=""
|
||||||
className={conditional(isLoaded && styles.loaded)}
|
className={conditional(isLoaded && styles.loaded)}
|
||||||
onLoad={() => {
|
onLoad={() => {
|
||||||
setIsLoaded(true);
|
setIsLoaded(true);
|
||||||
|
|
Loading…
Add table
Reference in a new issue