title: "CSRF token missing or incorrect" while post parameter via AJAX in Django
body: <p>I try to post parameter like </p>
  
  <pre><code> jQuery.ajax(
          {
              'type': 'POST',
              'url': url,
              'contentType': 'application/json',
              'data': "{content:'xxx'}",
              'dataType': 'json',
              'success': rateReviewResult 
          }
      );
  </code></pre>
  
  <p>However, Django return <code>Forbidden 403. CSRF verification failed. Request aborted.</code>
  I am using <code>'django.middleware.csrf.CsrfViewMiddleware'</code> and couldn't find how I can prevent this problem without compromising security.</p>