Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'localStorage' property from 'Window': Access is denied #29

Open
DevJett opened this issue Dec 7, 2020 · 2 comments
Open

'localStorage' property from 'Window': Access is denied #29

DevJett opened this issue Dec 7, 2020 · 2 comments

Comments

@DevJett
Copy link

DevJett commented Dec 7, 2020

Disabling browser localStorage returning a critical error
Is it important to set the last update key in localStorage?

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

To throw the error go to chrome settings search for Cookies then set Block all cookies (not recommended) option then open the react-clear-cache Demo here

@nucab
Copy link
Owner

nucab commented Dec 15, 2020

May I ask why would you disable localStorage in the browser?

@DevJett
Copy link
Author

DevJett commented Dec 19, 2020

Sure! Some of my website customers are maybe using old browsers or they disabled the localStorage by mistake and react-clear-cache crashes the React app.
I just did a temporary fix to check if the localStorge enabled in the browser before using your package but that's stopping them from getting the last update :(
Is it possible to fix the localStroge from your side?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants