Is it a case of same origin policy....
http://en.wikipedia.org/wiki/Same_origin_policy

On Dec 10, 8:27 am, Daniel Silva <danielmartinssi...@gmail.com> wrote:
> When I trying to do Oauth authentication with jquery it always receives a
> empty response. I'm doing this:
>
> $.ajax({
>    beforeSend: function(xhr) {
>      xhr.setRequestHeader("Authentication", authorizationHeader)
>    },
>    url:'https://twitter.com/oauth/request_token',
>    type: 'get',
>    contentType: 'application/x-www-form-urlencoded',
>    async: false,
>    success: function(msg){
>      alert( "Data: " + msg );
>    }
>
> });
>
> //output --> "Data: "
>
> Can someone help me?
> --
> best regards,
>
> Daniel Silva

Reply via email to