web-sdk icon indicating copy to clipboard operation
web-sdk copied to clipboard

DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

Open JUDOKICK opened this issue 4 years ago • 4 comments

Portis SDK seems to run into this issue when using Private mode or using Brave browser. Seems like there's an easy workaround by wrapping the localStorage calls with an isStorageAvailable function. If I have time in the near future, will submit a PR.

JUDOKICK avatar Mar 26 '20 11:03 JUDOKICK

brave is listed as supported at https://docs.portis.io, please have a look at this issue

mrq1911 avatar Jun 07 '20 15:06 mrq1911

Will do, thanks for bringing this to our attention

tomteman avatar Jun 07 '20 19:06 tomteman

@JUDOKICK Unfortunately, the fetching from localStorage happens in the code that runs under the Portis domain (the widget), not the SDK, so you will not be able to submit a PR. We'll release a fix soon.

tomteman avatar Jun 07 '20 19:06 tomteman

@tomteman any update on that?

0xclem avatar Jul 06 '20 23:07 0xclem