Yammer REST API CORS

mtt*_*mtt 0 javascript api rest cors yammer

我在Yammer中安装了一个应用程序并添加了Javascript起源,但仍然无法发出xhr请求

XMLHttpRequest cannot load https://www.yammer.com/platform/login_status.json?client_id=123456789&_=123456789. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://example.com.dev:9000' is therefore not allowed access.

Yammer Javascript起源设置

有什么建议吗?我正在本地计算机上工作,并且将example.com.dev解析为localhost。

小智 5

我认为答案是在域名中。

使用api .yammer.com而不是www.yammer.com

看到类似的问题也从马可的答案在这里