Skip to content Skip to sidebar Skip to footer

Yammer Rest Api Cors

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=

Solution 1:

I think the answer is in the domain name.

Use api.yammer.com instead of www.yammer.com

See for similar problem also the answer from Marco here

Solution 2:

No 'Access-Control-Allow-Origin' header is present on the requested resource.

You can do 2 things:

  • Ask yammer.com to allow your origin, or use a non browser HTTP request, for example with cURL.
  • If you develop an origin which is already allowed, then you should rewrite the hosts file and the webserver configuration on your dev machine, to bind the allowed origin to your dev site. Currently this is not an option, because there isn't any allow origin header sent according to the error message.

That's all you can do.

Solution 3:

In addition to changing the URL to be api.yammer.com be sure that you're not including any extra headers.

For example, I was accidentally including an extra header 'X-Foo-Id' and that was tripping up Yammer.

Solution 4:

Javascript origins[setting in app registration screen] needs to be updated with redirect url domain names

Post a Comment for "Yammer Rest Api Cors"