title: CORS jQuery AJAX request
body: <p>I'm having troubles with an ajax request. I was getting the error </p>
  
  <p><code>No 'Access-Control-Allow-Origin' header is present on the requested resource.</code></p>
  
  <p>So what I tried was this jQuery ajax request:</p>
  
  <pre><code>var request = $.ajax({
      type: 'GET',
      url: url,
      dataType: "json",
      xhrFields: {
          withCredentials: true
      }
  });
  request.done(function(data){
      console.log(data);
  });    
  </code></pre>
  
  <p>But it is still not working. I am still getting the error. </p>
  
  <p>How should I fix this?</p>