🏠 back to Observable

localStorage issues - broken notebooks

So it seem’s like there are now some issues with using window.localStorage in notebooks. The following error appears:

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

This seems to be effecting a lot of notebooks, including:

Just wanted to flag it, some of my (personal) notebooks are effected as well

@asg017 — What browser, version and OS are you using?

That’s so weird, it seems to be working now…

I was on a Chromebook, with Chrome OS 69.0.3486.0. And I had some experimental dev features turned on so that may have messed with it. Sorry for the trouble!

Chrome has started to phase out third-party cookies. This also affects access to localStorage (and sessionStorage) within a notebook.

If you run into this issue, click the eye icon in the address bar to allow cookies (temporarily or permanently) for all of a user’s notebooks: