asg017
July 20, 2018, 8:51am
1
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:
A simple way to store secrets, such as API tokens, in Observable notebooks. This notebook provides an input called \`secret\`, which works like: \`secret('key', options from \` \`@jashkenas/inputs\`\`)\` The form stores its last input value in...
We have created an API that allows us to get information from different Dialogflow Agents (Agent, entities, intents). This API is running on Azure Functions and it requires an AD user token to validate that the user has acces rights. baseUrl Our...
Just wanted to flag it, some of my (personal) notebooks are effected as well
@asg017 — What browser, version and OS are you using?
asg017
July 20, 2018, 5:05pm
3
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: