Several cross-domain solutions

1, document.domain + iframe provided

2, dynamically created script

3, and using iframe location.hash

4, window.name implement cross-domain data transmission

5, using HTML5 postMessage

6, using the flash over the program see http://www.cnblogs.com/rainman/archive/2011/02/20/1959325.html#m5

7, nginx reverse proxy This method is generally rarely mentioned, but he can not fit the target server, but you need to build a transit nginx server is configured to forward the request.

8, Jquery JSONP (essentially dynamically created script) http://www.cnblogs.com/chopper/archive/2012/03/24/2403945.html

9. Cross-Origin Resource Sharing (CORS) which is cross-domain solutions we want to introduce, but also the future of cross-domain issue standard solution

Guess you like

Origin www.cnblogs.com/buxiu/p/11289266.html