Mini App: Bring back allow-same-origin (#6852)
This commit is contained in:
parent
ce378d06b8
commit
c97503ab7c
@ -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: {
|
||||||
|
|||||||
@ -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"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@ -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(' ');
|
||||||
|
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user