Mini App: Bring back allow-same-origin (#6852)

This commit is contained in:
zubiden 2026-04-14 17:23:48 +02:00 committed by Alexander Zinchuk
parent ce378d06b8
commit c97503ab7c
4 changed files with 5 additions and 2 deletions

View File

@ -206,6 +206,8 @@ export default defineConfig(
'@eslint-react/no-missing-key': 'off',
'@eslint-react/no-nested-component-definitions': 'off',
'@eslint-react/no-unused-props': 'off',
'@eslint-react/dom-no-unsafe-iframe-sandbox': 'off',
'@eslint-react/dom/no-unsafe-iframe-sandbox': 'off',
'@eslint-react/no-leaked-conditional-rendering': 'error',
},
plugins: {

View File

@ -81,7 +81,7 @@ const GameModal: FC<OwnProps & StateProps> = ({ openedGame, gameTitle, canPost }
onLoad={handleLoad}
src={url}
title={lang('AttachGame')}
sandbox="allow-scripts allow-orientation-lock"
sandbox="allow-scripts allow-same-origin allow-orientation-lock"
allow="fullscreen"
/>
)}

View File

@ -97,6 +97,7 @@ const SANDBOX_ATTRIBUTES = [
'allow-popups',
'allow-forms',
'allow-modals',
'allow-same-origin',
'allow-storage-access-by-user-activation',
].join(' ');

View File

@ -79,7 +79,7 @@ const ConfirmPayment: FC<OwnProps> = ({
src={url}
title={lang('Checkout.WebConfirmation.Title')}
allow="payment"
sandbox="allow-modals allow-forms allow-scripts allow-top-navigation"
sandbox="allow-modals allow-forms allow-scripts allow-top-navigation allow-same-origin"
className="ConfirmPayment__content"
/>
</div>