有人能解释一下在使用dashcode时规避同源政策的最佳方法吗?I'我迷路了

Can someone please explain the best way to circumvent the same origin policy when using dashcode? I'm lost

本文关键字:方法 最佳 迷路 能解释 一下 dashcode      更新时间:2023-09-26

我一直在阅读关于规避同源策略的所有建议,但我不知道在使用dashcode时哪一个最成功,甚至不知道如何实现它。有人能帮忙吗?

我自己没有使用过这些解决方案,但我建议使用CORS(教程)或JSONP(更简单、更深入的解释)。

如果你想要一个更简单的解决方案,你链接的线程中提到了Any Origin。

您正在使用dashcode这一事实不应该影响您的javascript。