Cannot test on dev.domain.com after registering www.domain.com


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!'); } });

1 Reply
  • This is issue in not related to domain verification :(

    You can not Execute cross-domain POST/GET (except JSONP) in browser, this restriction is due to browser's cross origin policy


Recent Posts

in OAuth General Discussion YDN SDKs