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-missing-key': 'off',
'@eslint-react/no-nested-component-definitions': 'off', '@eslint-react/no-nested-component-definitions': 'off',
'@eslint-react/no-unused-props': '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', '@eslint-react/no-leaked-conditional-rendering': 'error',
}, },
plugins: { plugins: {

View File

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

View File

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

View File

@ -79,7 +79,7 @@ const ConfirmPayment: FC<OwnProps> = ({
src={url} src={url}
title={lang('Checkout.WebConfirmation.Title')} title={lang('Checkout.WebConfirmation.Title')}
allow="payment" 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" className="ConfirmPayment__content"
/> />
</div> </div>