Can any one tell me how to add custom header using ajax call in jquery for cross domain jsonp call.i am calling webservice in html page using ajax cross domain call.for that is
I am afraid that this is not possible. jQuery uses a <script>
tag for JSONP and as you know, you cannot set custom headers with this tag. As a possible workaround you could write a server side script on your domain which will act as a bridge between your domain and the remote domain. Then send a normal AJAX request to your script which in turn will delegate the call to the actual web service. Since it is a server-to-server communication your script could set any HTTP request headers that are required by the remote service.