title: Calling REST Api with JSONP & JQuery
body: <p>I have created REST API in MVC4, it is working fine when I compose request from fiddler. But in my application, I need to call through jsonp because it would cross domain request. But when I'm calling this service it gives me error as shown below:</p>
  
  <p>Jquery JsonP Call ..</p>
  
  <pre><code>$.ajax({
          type: "POST" ,
          url: "http://127.0.0.1:81/api/sites/GetDomainAvailability?apikey=asfasfdsf&amp;callback=?",
          data: { SubDomain: subDomain, ParentDomain: parentDomain, ResellerId: resellerId },
          cache: false,
          contentType: "application/json; charset=utf-8",
          success: function (response) {
              if (callback)
                  callback(response.d);
          },
          error: function (response) {
              if (callback)
                  error(response.d);
          },
      });
  </code></pre>
  
  <p>Error:
  <img src="https://i.stack.imgur.com/hv0jM.png" alt="enter image description here"></p>