react-clear-cache icon indicating copy to clipboard operation
react-clear-cache copied to clipboard

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

Open DevJett opened this issue 5 years ago • 2 comments

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

DevJett avatar Dec 07 '20 18:12 DevJett

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

nucab avatar Dec 15 '20 14:12 nucab

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

DevJett avatar Dec 19 '20 09:12 DevJett