title: Unsafe JavaScript attempt to access frame with URL - in the same domain
body: <p>I'm trying to access to the URL of the parent window from an iFrame but I got an error on my server:</p>
  
  <blockquote>
    <p>Unsafe JavaScript attempt to access frame with URL
    <a href="http://www.domain.com/folder/" rel="nofollow">http://www.domain.com/folder/</a> from frame with URL
    <a href="http://www.domain.com/folder/file.html" rel="nofollow">http://www.domain.com/folder/file.html</a>. The frame being accessed set
    'document.domain' to 'domain.com', but the frame requesting access did
    not. Both must set 'document.domain' to the same value to allow
    access.</p>
  </blockquote>
  
  <p>I'm in the same domain so I don't understand why I get this error.
  For your information everything works good in localhost.</p>
  
  <p>Thanks for your help.</p>