Fix Firefox Login Loop for Microsoft Accounts on Windows 11
Question details
The user is unable to sign into a Microsoft account via Firefox due to an endless login loop, though the process works perfectly in a Private Browsing window.
- Product
- Firefox Browser / Microsoft Account
- Device & OS
- Windows 11
- Scenario
- Attempting to sign into a Microsoft account on the web using the Firefox browser.
- Observed behavior
- After entering the correct password and authenticator code, Firefox repeatedly displays a 'Trying to log you in' message and fails to complete the sign-in. The same login flow succeeds in a Private Browsing window.
Before troubleshooting, ensure you have your Microsoft account credentials saved elsewhere and close any active Microsoft or Outlook tabs in your browser.
Clear Cookies and Site Data for Microsoft Domains
Because the login works in Private Browsing, corrupted cookies or cached data in your normal session are the most likely culprits.
Private browsing windows do not use your existing cache and cookies. Clearing your browser's stored data forces Firefox to retrieve fresh authentication tokens from Microsoft, resolving the loop.
Click the application menu button (three horizontal lines) in the top-right corner of Firefox and select Settings.
Select the Privacy & Security panel from the left-hand sidebar menu.
Scroll down to the Cookies and Site Data section and click the Manage Data button.
Type 'microsoft' and 'live' into the search bar, select the matching domains, click Remove Selected, and then click Save Changes.
Disable Extensions and Adjust Tracking Protection
Ad blockers, privacy extensions, or Firefox's strict tracking protection can block essential Microsoft authentication scripts.
Create a Fresh Firefox Profile
If clearing data and disabling extensions fails, your Firefox user profile may be permanently corrupted.
Switch to WPS Office for a Seamless Experience
Tired of dealing with browser login loops and web-based sync issues? WPS Office is a powerful, lightweight desktop alternative that lets you edit Microsoft documents offline without relying on web browser authentication.
- 1. Download and Install: Get the free WPS Office installer from the official website and run it on your Windows PC.
- 2. Open Your Files: Double-click any existing Microsoft Office files (.docx, .xlsx, .pptx) to open them instantly in WPS Office.
- 3. Edit Offline: Enjoy full editing capabilities without needing to authenticate through a web browser.

Frequently Asked Questions
Why does my Microsoft login work in Private Browsing but not normally?
Private Browsing starts a temporary session with a completely clean slate. It ignores your existing cookies, cached site data, and often disables extensions by default. If a login works here, it indicates that your normal browser profile has corrupted data or a conflicting add-on.
Can Firefox's Enhanced Tracking Protection cause login loops?
Yes. Microsoft's authentication process relies on multiple redirects and cross-site cookies between domains like microsoft.com and live.com. If your tracking protection is set to 'Strict', it may block these necessary cookies, causing the login to loop or fail.
Do I need an active Microsoft account to use WPS Office?
No, you do not need a Microsoft account to use WPS Office. You can easily edit, save, and manage your documents using WPS Office's own seamless account system or simply use it offline as a standalone desktop application.




