title: Django @csrf_exempt decorator not working
body: <p>I'm using DJango 1.8 on a linode server, and have the following view:</p>
  
  <pre><code>import json
  
  from django.http import HttpResponse
  from django.shortcuts import render
  from django.views.decorators.csrf import csrf_exempt
  
  def home_view(request):
          r = { 'response': 'OK', 'data': None }
          return HttpResponse(json.dumps(r), content_type = "application/json")
  
  @csrf_exempt
  def ping(request):
          r = { 'response': 'OK', 'data': 'ping' }
          return HttpResponse(json.dumps(r), content_type = "application/json")
  </code></pre>
  
  <p>My urls look like this:</p>
  
  <pre><code>urlpatterns = [
      url(r'^django/admin/', include(admin.site.urls)),
      url(r'^django/$', home_view),
      url(r'^django/ping/$', ping),
      url(r'^django/echo/$', echo),
  ]
  </code></pre>
  
  <p>If I go to my linode site at 
  <code>http://mylinodesite/django/ping/</code> </p>
  
  <p>I get:</p>
  
  <p><code>{"data": "ping", "response": "OK"}</code></p>
  
  <p>Great.  If I use jquery and do a </p>
  
  <p><code>$.get("http://mylinodesite/django/ping/")</code></p>
  
  <p>I get </p>
  
  <p><code>No 'Access-Control-Allow-Origin' header is present on the requested resource.</code></p>
  
  <p>From what I understand the @csrf_exempt is supposed to get rid of the CSRF header stuff.  What gives?</p>