JQuery and OAuth

JQuery and OAuth

Hi,

I need to communicate with a web service using OAuth. I need to send the OAuth properties in Request header.

1. if i use $.ajax with datatype 'json', then OPTIONS is executed first where here itself Am getting 400 bad request error
2. If i use $.ajax with datatype 'jsonp', Am unable to add Authorization header.

Can anyone guide me regarding this?


Thanks and regards,
Gokul