Yammer REST API CORS [英] Yammer REST API CORS
问题描述
我已经在Yammer中安装了一个应用程序并添加了Javascript起源,但仍然无法发出xhr请求
I've setup an app in Yammer and added Javascript origins but still can't make xhr request
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.
有什么建议吗? 我正在本地计算机上工作,并使用example.com.dev解析为本地主机.
Any suggestion? I'm working from a local machine and having example.com.dev to resolve as localhost.
推荐答案
我认为答案是在域名中.
I think the answer is in the domain name.
使用 api .yammer.com而不是www.yammer.com
Use api.yammer.com instead of www.yammer.com
See for similar problem also the answer from Marco here
这篇关于Yammer REST API CORS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!