title: Django: Forbidden (CSRF cookie not set.)
body: <p>I am having a problem with "CSRF cookie not set". All I need is that the external billing platform send the update to the django server. Locally it works with Postman but in the demo server its not working...</p>
  
  <h1>Code</h1>
  
  <pre><code># views.py
  from django.views.decorators.csrf import csrf_exempt
  from django.http import JsonResponse
  
  @csrf_exempt
  def postback(request):
      print(request.POST)
      return JsonResponse({'ok': 'hoooh!'})
  
  # urls.py
  from django.conf.urls import url
  from billing import views
  
  urlpatterns = [
     url(r'^postback/$', views.postback),
  ]
  </code></pre>
  
  <h1>Error</h1>
  
  <pre><code>Forbidden (CSRF cookie not set.): /billing/postback/
  [21/Jul/2016 10:49:21] "POST /billing/postback/ HTTP/1.1" 403 2682
  </code></pre>
  
  <h1>Result of the postback to the requestb server</h1>
  
  <p><a href="https://requestb.in/p0rihap0?inspect#t67d6c" rel="noreferrer">https://requestb.in/p0rihap0?inspect#t67d6c</a></p>
  
  <h1>Env</h1>
  
  <ul>
  <li>Python 3.5.1+</li>
  <li>Django 1.10rc1</li>
  </ul>