Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method Not Allowed (GET): /user/logout/ Method Not Allowed: /user/logout/ [05/Feb/2025 23:33:56] "GET /user/logout/?next=/ HTTP/1.1" 405 0 #71

Open
absurdity9 opened this issue Feb 5, 2025 · 0 comments

Comments

@absurdity9
Copy link

Log out does not work.

When Im logged in as superadmin user and click log out on the navbar I get this error.

Copilot said:

The terminal message indicates that a GET request was made to the /user/logout/ URL, but the server responded with a 405 Method Not Allowed status code. This means that the GET method is not allowed for the /user/logout/ endpoint.

In Django, the logout view typically only allows POST requests for security reasons. To fix this, you should ensure that the logout request is made using the POST method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant