Hello,
I am trying to get an oauth authentication in my app, I got a consumer key for www.domain.com but I am testing for dev.domain.com . After running the code I am getting an xmlhttp request error, saying that domain is not allowed by Access-Control-Allow-Origin. This is the code i am running
$.ajax({
type: "POST",
url: "https://api.login.yahoo.com/oauth/v2/get_request_token",
data: {
"oauth_consumer_key": yConsumerKey,
"oauth_signature_method": "HMAC-SHA1",
"oauth_version": "1.0",
"oauth_timestamp": yTimestamp,
"oauth_nonce": randomString,
"oauth_signature": ySignature
},
success: function (a) {
console.log(a);
},
error: function () { alert('Yahoo login failed!'); }
});