我试图访问网络服务,但得到跨域访问控制,允许原产错误跨域访问控制,允许原产错误
$.getJSON("https://beevou.net/oauth/token?grant_type=password&username="+user+
"&password="+pass+"&client_id=NTEzZGU5MThlNDQ0YWM0&client_secret=45d1002085db5dca4dbdbc5f83731 d19662cb265",
function(data) {
console.log(JSON.stringify(data));
});
这是URL。无法改变Web服务方面的任何东西。 让我知道了一些解决方案,提前摆脱这一问题的
感谢
的可能重复[途径来规避同源策略(http://stackoverflow.com/questions/3076414/ways-to-circumvent-the-same-origin-policy) – Quentin
@昆汀不错的链接,我书签 –