Please note an unhandled SecurityError (DOM Exception 18): The operation is insecure is thrown when calling window.localStorage from Safari on iOS 7.1.2 with blocked cookies (Settings > Safari > Block Cookies > Always).
1 2 |
> window.localStorage; //console.log("http://www.codingrepo.com"); < SecurityError (DOM Exception 18): The operation is insecure. |
It is caused by disabling cookies also disables localStorage. With other two choices of block cookies setting (“From third parties and […]