Accessing localStorage in an iframe
<p>I'm loading this HTML from a different domain into an IFRAME:</p>

<pre><code>&lt;script&gt;
console.log(localStorage);
localStorage.setItem('test', 'test');
console.log(localStorage);
&lt;/script&gt;
</code></pre>

<p>This seems to work fine in Chrome and Edge. In Firefox however I get:</p>

<blockquote>
  <p>SecurityError: The operation is insecure.</p>
</blockquote>

<p>What's going on here?</p>