Let's say I have a domain, js.mydomain.com
, and it points to some IP address, and some other domain, requests.mydomain.com
, which points to a different IP address. Can a .js
file downloaded from js.mydomain.com
make Ajax requests to requests.mydomain.com
?
How exactly do modern browsers enforce the same-domain policy?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…