JavaScript CORS error when trying to post message cors error when calling api,cors error when calling api

I have an AngularJS Application I am trying to post a message through. I am successfully able to log the user in, get the access token, and I have ensured I have my domain in the JavaScript Origins within Yammer.

Whenever I try to post a message, however, I get the following error:

Image of console error

The strange thing is when it does the preflight it seems OK but as the error states I can't figure out why it isn't coming back in the CORS header as I have it registered within the Yammer Client area.

Here is the code for posting:

    $scope.YammerPost = function (Yammer) {
        var _token = Yammer.access_token.token;
        var config = {
            headers: {
                'Authorization': 'Bearer ' + _token
            }
        };
        $http.post('https://api.yammer.com/api/v1/messages.json', { body: 'blah blah', group_id: XXXXXXX }, config);
    }

I call that scope variable in the view via a button click.

Here is the logic I use to sign the user in:

    function checkYammerLogin() {
        $scope.Yammer = {};
        yam.getLoginStatus(
          function (response) {
              if (response.authResponse) {
                  $scope.Yammer = response;
                  console.dir(response); //print user information to the console
              }
              else {
                  yam.platform.login(function (response) {
                      if (response.authResponse) {
                          $scope.Yammer = response;
                          console.dir(response);
                      }
                  });
              }
          }
        );
    }
Answer:1

I am working with parse.com and looking at making my app secure. I think I have understood well the basics principles of the ACL, CLP, and Cloud functions. My main question comes from the Part IV of ...

I am working with parse.com and looking at making my app secure. I think I have understood well the basics principles of the ACL, CLP, and Cloud functions. My main question comes from the Part IV of ...

  1. security with cloud computing
  2. security with cloud service
  3. security camera with cloud storage
  4. security issues with cloud computing
  5. security concerns with cloud computing
  6. security issues with cloud storage
  7. security risks with cloud computing
  8. security camera with cloud
  9. security issues with cloud
  10. security challenges with cloud computing
  11. cyber security with cloud computing
  12. security threats with cloud computing
  13. security concerns with cloud
  14. data security with cloud computing
  15. security issues with cloud computing pdf
  16. security camera with cloud service
  17. security issues with cloud application
  18. security problems with cloud
  19. security cloud
  20. security cloud symantec

I have a method for validating a string, I want that method to return a Promise as the validations being ran may be asynchronous. The issue I am having however is one of performance, I want the ...

I have a method for validating a string, I want that method to return a Promise as the validations being ran may be asynchronous. The issue I am having however is one of performance, I want the ...

I have an array of data objects about people. Each person object includes 0-n URLs for additional info (guests of the person). I want to process this list, calling each of the 'guest' URLs and ...

I have an array of data objects about people. Each person object includes 0-n URLs for additional info (guests of the person). I want to process this list, calling each of the 'guest' URLs and ...

Performing For..Loops or While..Loops does not update the $scope variable. I'm trying to show the progress as loops are incremented. I have read (http://jimhoskins.com/2012/12/17/angularjs-and-apply....

Performing For..Loops or While..Loops does not update the $scope variable. I'm trying to show the progress as loops are incremented. I have read (http://jimhoskins.com/2012/12/17/angularjs-and-apply....

  1. angularjs loop not updating