mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
fix(console): add sandbox attribute to iframe (#1926)
This commit is contained in:
parent
8d22b5c468
commit
14cb0439e3
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
|||
// FIXME: @sijie
|
||||
/* eslint-disable react/iframe-missing-sandbox */
|
||||
import { languageOptions } from '@logto/phrases-ui';
|
||||
import {
|
||||
AppearanceMode,
|
||||
|
@ -197,7 +195,12 @@ const Preview = ({ signInExperience, className }: Props) => {
|
|||
<PhoneInfo />
|
||||
</div>
|
||||
)}
|
||||
{
|
||||
// The missing of attribute "sandbox" is intended since the source is trusted
|
||||
/* eslint-disable react/iframe-missing-sandbox */
|
||||
}
|
||||
<iframe ref={previewRef} src="/sign-in?preview=true" tabIndex={-1} />
|
||||
{/* eslint-enable react/iframe-missing-sandbox */}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -206,4 +209,3 @@ const Preview = ({ signInExperience, className }: Props) => {
|
|||
};
|
||||
|
||||
export default Preview;
|
||||
/* eslint-enable react/iframe-missing-sandbox */
|
||||
|
|
Loading…
Add table
Reference in a new issue