title: Embed reactjs app with access to localstorage
body: <p>I have a Reactjs app that uses localstorage, I would like users to be able to embed my website. </p>
  
  <p>I would like to access the localstorage for my website when it is embedded, but <strong>I get the following message twice:</strong></p>
  
  <blockquote>
    <p><strong>DOMException:</strong> Failed to read the 'localStorage' property from 'Window': Access is denied for this document.</p>
  </blockquote>
  
  <p>I also use the localstorage when users use my website normally. </p>
  
  <p><strong>How can I check localstorage</strong> of my own website when it is being embedded via iframe? </p>
  
  <p>Preferrably I would like to know how I can do it within the realm of reactjs, worst case, I can just never check local storage and they can login from the embed. </p>
  
  <p>If it is impossible, would I be able to check cookies via react in an iframe?</p>