mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -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
|
||||
title={title}
|
||||
src={href}
|
||||
sandbox="allow-scripts"
|
||||
// Applies all restrictions
|
||||
sandbox=""
|
||||
className={conditional(isLoaded && styles.loaded)}
|
||||
onLoad={() => {
|
||||
setIsLoaded(true);
|
||||
|
|
Loading…
Add table
Reference in a new issue