I'm trying to load an iframe in url example.com/somefile.html from a subdomain sub.example.com/dir/frame.html.
Inorder to avoid SOP violation, im setting the document.domain attriute to example.com in javascript code, in both frame.html & somefile.html.
This works in IE and Firefox but I still encounter the following error in Chrome: "Refused to display "frame-url" in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'."
When debugging and checking both files document.domain value I get the expected "example.com".
Can anyone enlighten me?