You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the end-user browser is configured to block cookies (or block third party cookies in a cross site iframe context) the whole Angular app can crash in an uncatchable error with:
The reason is, has told by the error, access to window.localStorage is forbidden when user block cookies or third party cookies.
The real problem is the error is uncatchable because the first (uncatched) use of window.localStorage happens into config.helper.ts into a static property :
Can you please fix it? Even at least hotfixing it by moving the first use of window.localStorage into a constructor, this way the error would be catchable using dynamic dependency injection?
Not tested, but I suppose it can happens with: sessionStorage, cookiesStorage, sharedStorage.
Many thanks for this pretty useful library as well.
The text was updated successfully, but these errors were encountered:
I had the same problem and I did the follow workaround - polyfill localStorage and sessionStorage if access denied detected. Don't solve the problem but the app will render.
If the end-user browser is configured to block cookies (or block third party cookies in a cross site iframe context) the whole Angular app can crash in an uncatchable error with:
Reproduced on Chrome, Safari, Opera, Firefox.
The reason is, has told by the error, access to window.localStorage is forbidden when user block cookies or third party cookies.
The real problem is the error is uncatchable because the first (uncatched) use of window.localStorage happens into config.helper.ts into a static property :
Can you please fix it? Even at least hotfixing it by moving the first use of
window.localStorage
into a constructor, this way the error would be catchable using dynamic dependency injection?Not tested, but I suppose it can happens with: sessionStorage, cookiesStorage, sharedStorage.
Many thanks for this pretty useful library as well.
The text was updated successfully, but these errors were encountered: