diff --git a/eslint.config.js b/eslint.config.js index 8cf5eb0d8..6facc4f9b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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: { diff --git a/src/components/main/GameModal.tsx b/src/components/main/GameModal.tsx index bfe55db29..b8b7fa551 100644 --- a/src/components/main/GameModal.tsx +++ b/src/components/main/GameModal.tsx @@ -81,7 +81,7 @@ const GameModal: FC = ({ 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" /> )} diff --git a/src/components/modals/webApp/WebAppModalTabContent.tsx b/src/components/modals/webApp/WebAppModalTabContent.tsx index b4ede2fe2..e9f81bc79 100644 --- a/src/components/modals/webApp/WebAppModalTabContent.tsx +++ b/src/components/modals/webApp/WebAppModalTabContent.tsx @@ -97,6 +97,7 @@ const SANDBOX_ATTRIBUTES = [ 'allow-popups', 'allow-forms', 'allow-modals', + 'allow-same-origin', 'allow-storage-access-by-user-activation', ].join(' '); diff --git a/src/components/payment/ConfirmPayment.tsx b/src/components/payment/ConfirmPayment.tsx index 281ec85a9..c67428f99 100644 --- a/src/components/payment/ConfirmPayment.tsx +++ b/src/components/payment/ConfirmPayment.tsx @@ -79,7 +79,7 @@ const ConfirmPayment: FC = ({ 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" />