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-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: {
|
||||
|
||||
@ -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"
|
||||
/>
|
||||
)}
|
||||
|
||||
@ -97,6 +97,7 @@ const SANDBOX_ATTRIBUTES = [
|
||||
'allow-popups',
|
||||
'allow-forms',
|
||||
'allow-modals',
|
||||
'allow-same-origin',
|
||||
'allow-storage-access-by-user-activation',
|
||||
].join(' ');
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user