title: Cannot access API view on post request using decorator [AllowAny]
body: <p>I have a simple function-based <code>@api_view(['POST'])</code> with <code>@permission_classes([AllowAny])</code>
  and DRF settings in settings.py are:</p>
  <pre><code>REST_FRAMEWORK = {
      'DEFAULT_AUTHENTICATION_CLASSES': [
          'rest_framework_simplejwt.authentication.JWTAuthentication',
      ],
      'DEFAULT_SCHEMA_CLASS': 'rest_framework.schemas.coreapi.AutoSchema',
  }
  </code></pre>
  <p>The <a href="https://www.django-rest-framework.org/api-guide/permissions/" rel="nofollow noreferrer">documentation</a> says:</p>
  <blockquote>
  <p>The AllowAny permission class will allow unrestricted access,
  regardless of if the request was authenticated or unauthenticated.</p>
  </blockquote>
  <p>But I'm getting the following response on making a post request:</p>
  <pre><code>{
      &quot;detail&quot;: &quot;Authentication credentials were not provided.&quot;
  }
  </code></pre>
  <p>What might be the problem? Do I have to modify <code>DEFAULT_AUTHENTICATION_CLASSES</code> from the settings? I don't want the permissions to be required while making the request on this <code>@api_view</code>:</p>
  <pre><code>@api_view(['POST'])
  @permission_classes([AllowAny]) 
  def reset_password_request(email):
      try:
      #...
  </code></pre>
  <p>accounts/urls.py:</p>
  <pre><code>urlpatterns = [
      path('user/&lt;str:pk&gt;/', views.getUserById, name='user'),
      path('user/password_reset_request/',
           views.resetPasswordRequest, name='password_reset_request'),
  ]
  </code></pre>