We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
只讲现阶段可用的方案,类似iframe 等技术本次不讨论。
josnp利用了script.src属性动态请求,执行回调函数,是一种借用方法。 特点:
前景: 2017年之前还在使用,企业内部可以使用;
前景:未来趋势,现代浏览器在向规范靠谱,谁不按套路出牌,谁就得死; 根据业务场景和用户端,推荐使用,好的浏览器没有人会拒绝吧;
跨域是浏览器为了防止网络安全,规范中的限制,但服务器端是不受限制的,因此在服务器端设置代理;
特点:
前景:安全级别高。
强力推荐。
场景较少,一般web开发不会涉及;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
只讲现阶段可用的方案,类似iframe 等技术本次不讨论。
jsonp
josnp利用了script.src属性动态请求,执行回调函数,是一种借用方法。
特点:
跨域资源共享(CORS)
proxy
跨域是浏览器为了防止网络安全,规范中的限制,但服务器端是不受限制的,因此在服务器端设置代理;
特点:
前景:安全级别高。
强力推荐。
WebSocket协议跨域
场景较少,一般web开发不会涉及;
The text was updated successfully, but these errors were encountered: