Set Headers with jQuery.ajax and JSONP? Set Headers with jQuery.ajax and JSONP? ajax ajax

Set Headers with jQuery.ajax and JSONP?


This is not possible.

A JSONP request works by creating a <script> element with its src attribute set to the request URL.
You cannot add custom headers to the HTTP request sent by a <script> element.