If two windows (or frames) contain scripts that set domain to the same value, the same-origin policy is relaxed for these two windows, and each window can interact with the other.
The second technique for relaxing the same-origin policy is standardized under the name Cross-Origin Resource Sharing.