title: Uncaught SyntaxError and CORS error using AJAX with JSONP
body: <p>When I execute an AJAX call, I get following error: </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token :</p>
  </blockquote>
  
  <p>However, when I access the same URL directly in my browser, I get the expecting JSON response.</p>
  
  <p>What am I doing wrong and how can I fix it?</p>
  
  <p>Below is my jQuery AJAX request;</p>
  
  <pre><code>$.ajax({
      type: 'GET',
      url: "http://www.exampleUrl.com",
      crossDomain: true,
      dataType: "jsonp",
      jsonp: "jsonp",
      mimeType: "application/json",
      jsonpCallback: 'callback',
      contentType: "application/json; charset=utf-8",
      beforeSend: function() {
          //
      },
      success: function (data) {
          alert("success");
      },
      error: function (result) {
          //      
      }
  });
  </code></pre>