title: Reading cookies across different hosts
body: <p>I have two sites - both are my projects. On site two, I need to check if the user is logged in on site one. I suppose to do this I should just create a script that puts a cookie into the body of an iframe and then read the iframe contents on site two. But I can't. </p>
  
  <p>Here is a code I made for testing purposes:<br>
  <a href="http://jsbin.com/oqaza/edit" rel="nofollow noreferrer">http://jsbin.com/oqaza/edit</a></p>
  
  <p>I got an error, that says:</p>
  
  <blockquote>
    <p>"Permission denied for
    &lt;<a href="http://jsbin.com" rel="nofollow noreferrer">http://jsbin.com</a>> to get property
    HTMLDocument.nodeType from
    &lt;<a href="http://www.google.com" rel="nofollow noreferrer">http://www.google.com</a>>."</p>
  </blockquote>