摘要
在异域数据集成的Web应用中,同源策略使AJAX跨域访问受到了限制。阐述了避开同源策略的主要方案JSONP、Websocket、CORS等跨域方式的原理,进而提出了基于CSS的最快最佳方案-CSST,最后介绍了该方法的实现原理和优势。实践表明,该方法更有效地解决了AJAX跨域访问和展现数据的问题。
In the Web applications with heterogeneous data integration, homology policies make AJAX cross-domain access restricted. The cross-domain access principles of JSONP, Websocket, CORS and so on are discussed, then, CSST the fastest and best solution based on CSS is proposed, and the principle and advantage of CSST are introduced. The practice shows that this method is more effective to solve the problems of AJAX cross-domain access and show the data.
出处
《计算机时代》
2017年第9期19-20,共2页
Computer Era