title: Django Post 403 forbidden CSRF
body: <p>I have a simple Django webhook that keeps returning a <code>403 forbidden</code> despite I have marked it with <code>csrf_exempt</code>.</p>
  
  <p>Here is the relevant code:</p>
  
  <p>urls.py</p>
  
  <pre><code> ...
   url(r'^mail/$', MailView.as_view(), name="mail"),
   ...
  </code></pre>
  
  <p>view.py</p>
  
  <pre><code>class MailView(View):
      @csrf_exempt
      def dispatch(self, *args, **kwargs):
          return super(MailTrackingView, self).dispatch(*args, **kwargs)
  
      def post(self, request, *args, **kwargs):
          return HttpResponse(status=204)
  </code></pre>
  
  <p>When sending data to this endpoint, Django gives a </p>
  
  <pre><code>Forbidden (CSRF cookie not set.): /mail/
  </code></pre>
  
  <p>What else do I have to set so the CSRF validation is not performed?</p>