title: Django Rest - CSRF Failed: CSRF token missing or incorrect
body: <p>Got a weird scenario. I am on the Django Rest browser api with a logged in user.
  When I update it is okay. But when I try to create a user, this error shows:</p>
  
  <p>CSRF Failed: CSRF token missing or incorrect.</p>
  
  <p>it also auto logged out me every single time.</p>
  
  <p>In views.py, I already have added</p>
  
  <pre><code>permission_classes = (permissions.IsAuthenticatedOrReadOnly,)
  </code></pre>
  
  <p>Still same error and scenario. 
  In my settings.py:</p>
  
  <pre><code>REST_FRAMEWORK = {
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework.authentication.SessionAuthentication',
      ),
      'DEFAULT_PERMISSION_CLASSES': [
          'rest_framework.permissions.AllowAny',
      ],
  }
  </code></pre>
  
  <p>Anyone experienced this?</p>