marcuswestin / store.js

Cross-browser storage for all use cases, used across the web.
MIT License
14.01k stars 1.33k forks source link

localStorage access deny in ie10 #248

Open lerit opened 7 years ago

lerit commented 7 years ago

not all ie has this problem,but some windows os with customized user template or from custom images. when use store.js,my ie10 throw error:'access denied' ,i deubg it and found window.localStorage cause this problem. i search some solution,below,but can the store.js detect this condition,and degrade to sessionStorage or cookies? one: run this command: icacls %userprofile%\Appdata\LocalLow /t /setintegritylevel (OI)(CI)L

two:ie-internet-security,and add my website to trust list

three:run ie as administrator

four:ie-internet-security-remoe“enable Protected mode”

and this two page is the reason: (https://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/ie10-script5-access-is-denied/e87bdb30-7f2a-4510-bfa3-a22b995f777b)

(https://stackoverflow.com/questions/13102116/access-denied-for-localstorage-in-ie10)