Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  How to play with cross domain request

What is cross domain requestIn simple, cross domain request is to request resource from other domain in one domain. Note, the "other domain" doesn't just mean domain name only, it includes much more. If the protocol, domain name, port is not the same, two domains will be considered different. Below example describes what is considered as different domain.http://www.a.com/a.jshttp://www.a.com/b.js               # Same domainhttp://www.a.com/lab/a.js         # Same domainhttp://www.a.com/script/b.js     # Same domainhttp://www...

10,751 0       FRONT END JSONP CROSS DOMAIN CROSS ORIGIN CORS DOCUMENT.DOMAIN WINDOW.NAME