Mar 18, 2005, 6:25 AM
Post #1 of 1
Same Origin Policy problem across subdomains
Now, Mozilla.org very kindly tells us how to get around this if the 2 servers are subdomains of the same domain name - you insert the line document.domain = "mydomain.com", and thus allow script from www1.mydomain.com and www2.mydomain.com to access each others properties.
Problem is, with that line added in my page (the generated PHP page), the editor never finishes loading. I've tried relocating the document.domain line to just about every one of the JS files (and all at the same time), and various locations on the calling page, all to no avail.
Has anyone else had this problem, or better still - a solution?
(This post was edited by billgates on Mar 18, 2005, 6:40 AM)