Allow app/twiddle to access localStorage
I was trying to make a repro repo for the ember-localstorage-adapter using ember-twiddle, but it seems that the app is "sandboxed" or otherwise disallowed from accessing localStorage. I assume this is related to some kind of security concern. Is there a way to work around it? (e.g. set a flag in the config or something?)
https://ember-twiddle.com/d526982f42a741ee1379bbb76c2548c1?openFiles=routes.application.js%2C
Sandboxed iframes cannot access localStorage.
Give codesandbox a try for this scenario.
Sandboxed iframes cannot access localStorage.
And the iframe must always be sandboxed?
You don't want to worry about opening an evil twiddle that does something to your Github account, right?
You don't want to worry about opening an evil twiddle that does something to your Github account, right?
As long as I had to click an "OK, hack me" button first (or alternatively if it would only allow it for my own twiddles) then I would be OK with that. Ideally, there'd be a way to grant permissions in a more granular way than all or nothing. e.g. allow-storage-access-by-user-activation (see sandbox section of https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe)