How to Fix 401 Unauthorized Error

Quick answer
A 401 Unauthorized error means the page needs you to log in and your credentials were missing or wrong. Log in again, check your username and password, and clear cookies if you are sure the details are correct.
What does “401 Unauthorized” mean?
HTTP 401 means authentication is required and has failed or not been provided.
What causes it?
- Not logged in
- Wrong username or password
- Expired session or token
- Wrong API key (for developers)
Steps to try
Stop when the issue is resolved.
- Log out and log in again.
- Check the URL is the correct page.
- Clear cookies for the site.
- Reset your password if needed.
- Developers: send a valid Authorization header or API key.
Need more support? Check the official help: MDN Web Docs: HTTP response status codes
FAQs
What is the difference between 401 and 403?
401 means you are not logged in correctly; 403 means you are known but not allowed.
Can a browser extension cause 401?
Yes, if it strips headers or cookies.
By Ava Collins
·