Cross-domain JavaScript code with sibling sub-domains
问题 I have two web applications setups: david .example.com and john .example.com David opens a new window to John: window.open('john.example.com'); John would now like to set an input element back on David: $("#input", window.opener.document).val("Hello David."); My problem is that this doesn't work on most modern browser because of cross-domain scripting security. I've also tried setting document.domain to different domain combinations both on David and John with no success. The only time this