Skip to content

Responsed Unauthorized 401 in AllowAny permission #8722

@junngo

Description

@junngo

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 as Authorization: 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]
Screenshot from 2022-10-20 10-49-57

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions