Yammer JS SDK — problems with CORS

与世无争的帅哥 提交于 2019-12-04 08:19:57

Same here my dev app started failing sometime today. It seems that all of the login end points are working as expected however the messages feed is giving me CORS errors.

yam.platform.request({
            url: "https://api.yammer.com/api/v1/messages/my_feed.json",
            method: "GET",
            success: function (user) { //print message response information to the console
              console.log("The request was successful." + user.messages);
            },
            error: function (user) {
              console.log("There was an error with the request.");
            }
        });

Yeah, I'm seeing this on our end too. Seems to be just the GET requests with the messages api endpoint. Like POST / DELETE and Message POST seem to work correctly.

This issue appeared to me around 4PM PST yesterday (7/22/14).

This was a known issue with a recent change on our side, and we have pushed a fix to production today. Please let me know if it still isn't working for you. — Nick

So it is an issue on the Yammer side and we can just hope for it not to appear again.

I am seeing this with the notifications endpoint as well. I noticed that the CLIENT_ID is not being appended to the call https://api.yammer.com/api/v1/streams/notifications.json?&_=xxxxxxxxxx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!