four approachs can cross domain in javascript 1.jsonp 2.document.domain(only in frame and they have one same parent domain) 3.window.name 4.window.postMessage(only in Html5) original website:http://www.cnblogs.com/2050/p/3191744.html…
frontend: first :add $.support.cors=true; in front of the Ajax code. seconde: add the crossDomain:true, attribute to the $.ajax. webconfig: add the following code to the node <system.webServer> <httpProtocol> <customHeaders> <add nam…