首页 > 新浪微博快速登录发送post请求?

新浪微博快速登录发送post请求?

参考新浪微博的文档http://open.weibo.com/wiki/Oauth2/access_token
我已经获得了其中的参数,可是发送post请求总是报错,求大神帮忙解决。
以下是报错信息:
POST https://api.weibo.com/oauth2/access_token 401 (Unauthorized)

XMLHttpRequest cannot load https://api.weibo.com/oauth2/access_token. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:63342' is therefore not allowed access. The response had HTTP status code 401.


你是用js发吗?浏览器有同源策略,不允许跨域请求

https://developer.mozilla.org/zh-CN/docs/Web/Security/Same-origin_policy

【热门文章】
【热门文章】