Yammer REST API CORS [英] Yammer REST API CORS

查看:125
本文介绍了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

对于类似的问题,也请参见Marco

See for similar problem also the answer from Marco here

这篇关于Yammer REST API CORS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆