Responsed Unauthorized 401 in AllowAny permission #8812
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
I am having the same problem. I have a view inheriting from |
Beta Was this translation helpful? Give feedback.
-
Hi there :)
I'd like to know you about this situation and this is just a suggestion.
I happened a similar problem in case #2383
I set AllowAny permission, and DRF returns an Unauthorized 401 response.
The reason is If you call API with
Authorization property
such asAuthorization: Bearer null
[0], It return 401.Regardless of whether there is
Authorization property
or not, should we consider not causing 401 in AllowAny permission?[0]

Beta Was this translation helpful? Give feedback.
All reactions