title: Call Web API on Cross Domain
body: <p>I have a WebAPI and I need AJAX call to access this 
  <strong>but on the cross domain</strong></p>
  
  <p>Here is my code : </p>
  
  <pre><code>$.ajax({
           type: "POST",
           url: '/api/myapiname/apiactionname',
           contentType: "application/json",
           data: {
                  name: "Abhishek",
                  email: "abhi@abhi.com",
                  password: "******"
              },
           crossDomain:true, 
           success: function(data) { console.log(data); },
           error: function(data) {console.log(data); },
           dataType: 'json',
           beforeSend: function (xhr) {
               xhr.setRequestHeader("Access-Control-Allow-Origin", "*");
           },
  
      });
  </code></pre>