Hi
Im trying to show an external web page in an iframe in an HTML component in a mobile app. The page is not loaded and the following exception in shown in the console:
Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': The document is sandboxed and lacks the 'allow-same-origin' flag.
at t.ScopedLocalStorage.getItem (chrome-extension://hnfanknocfeofbddgcijnmhnfnkdnaad/requestProvider.js:2:28330)
at i.getChainId (chrome-extension://hnfanknocfeofbddgcijnmhnfnkdnaad/requestProvider.js:2:46875)
at new w (chrome-extension://hnfanknocfeofbddgcijnmhnfnkdnaad/requestProvider.js:2:33992)
at new i (chrome-extension://hnfanknocfeofbddgcijnmhnfnkdnaad/requestProvider.js:2:407923)
at t.RequestProvider.provide (chrome-extension://hnfanknocfeofbddgcijnmhnfnkdnaad/requestProvider.js:2:406743)
at chrome-extension://hnfanknocfeofbddgcijnmhnfnkdnaad/requestProvider.js:2:490281
at chrome-extension://hnfanknocfeofbddgcijnmhnfnkdnaad/requestProvider.js:2:490903
at chrome-extension://hnfanknocfeofbddgcijnmhnfnkdnaad/requestProvider.js:2:490907
at chrome-extension://hnfanknocfeofbddgcijnmhnfnkdnaad/requestProvider.js:2:490911
According to this issue, enabling "Storage and cookies" setting under interaction for an iframe component. I tested with a desktop app, and can confirms the problem occurs without enabling this setting and is fixed by enabling this setting.
However, in a mobile app, there is no iframe component. And there is no such setting for the HTML component.
Anyone else have experienced the same thing? And resolved it? Or have any tips or tricks on how to work around it?