Microsoft Teams is stuck in a login loop in Edge, Internet Explorer, Google Chrome, Firefox, or Safari

Symptoms

When you try to sign in to Microsoft Teams in Microsoft Edge, Internet Explorer, Google Chrome, Mozilla Firefox, or Safari, the site continually loops, and you can never sign in.

Cause

This issue occurs if your organization uses Trusted Sites and doesn't enable the URLs for Microsoft Teams. Therefore the Teams web-based application is not able to sign in.

Resolution

Change the settings for your browser using administrator rights or a Group Policy Object (GPO).

Microsoft Edge

  1. In the Edge Settings window, select Cookies and site permissions then select Manage and delete cookies and site data under Cookies and data stored.

  2. Turn on Allow sites to save and read cookie data (recommended) and make sure Block third-party cookies is turned off. Alternatively, follow step 3 if you need to keep third-party cookies blocked.

  3. In the same window, under Allow, select Add to add the following sites:

    • [*.]microsoft.com
    • [*.]microsoftonline.com
    • [*.]teams.skype.com
    • [*.]teams.microsoft.com
    • [*.]sfbassets.com
    • [*.]skypeforbusiness.com

    Screenshot of Settings window in edge, showing options under the Cookies and site permissions item and sites added.

To change the settings by using GPO, follow these steps:

  1. Download and install the Microsoft Edge administrative template.
  2. Add the sites listed in step 3 above to the Content settings > CookiesAllowedForUrls setting, either with a mandatory or recommended policy. For more information, see Set mandatory or recommended policies and CookiesAllowedForUrls setting.

Internet Explorer

Note

Starting on November 30, 2020, the Microsoft Teams web app no longer supports Internet Explorer 11. For more information, go here.

  1. In Windows Control Panel, open Internet Options.

  2. In the Internet Options window, select Privacy and Advanced.

  3. Select Accept for First-party Cookies and Third-party Cookies, and then select the Always allow session cookies check box.

    Screenshot of Advanced Privacy Settings dialog. First and Third party Cookies are selected as accept, and Always allow session cookies is checked.

    Alternatively, follow steps 3 and 4 if you need to keep third-party cookies blocked.

  4. In the Internet Options window, select Security > Trusted Sites > Sites.

  5. Add the following sites:

    • https://*.microsoft.com
    • https://*.microsoftonline.com
    • https://*.teams.skype.com
    • https://*.teams.microsoft.com
    • https://*.sfbassets.com
    • https://*.skypeforbusiness.com

Google Chrome

  1. In the Chrome Settings window, on the Privacy and security tab, select Cookies and other site data.

  2. Under Sites that can always use cookies, select Add, and then select the Including third-party cookies on this site check box.

  3. Add the following sites:

    • [*.]microsoft.com
    • [*.]microsoftonline.com
    • [*.]teams.skype.com
    • [*.]teams.microsoft.com
    • [*.]sfbassets.com
    • [*.]skypeforbusiness.com

To change the settings by using GPO:

  1. Download and install the Chrome administrative template.
  2. Add the sites listed in step 3 above to the Content settings > CookiesAllowedForUrls setting.

Mozilla Firefox

  1. In the Firefox Settings window, select the Privacy & Security tab.

  2. Under Cookies and Site Data, select Manage Exceptions.

  3. In the Address of website text box, type the following URLs, and then select Allow.

    • https://microsoft.com
    • https://microsoftonline.com
    • https://teams.skype.com
    • https://teams.microsoft.com
    • https://sfbassets.com
    • https://skypeforbusiness.com
  4. Select Save Changes.

To change the settings by using GPO:

  1. Download and install the Firefox administrative template.
  2. Add the sites listed in step 3 above to the Cookies > Allowed Sites setting.

Safari

Teams support for Safari is currently in preview. Use the following workaround to access the Teams web client:

  1. Select Preferences > Privacy.
  2. Uncheck the Prevent cross-site tracking setting.
  3. Close Safari, then reopen it and navigate to teams.microsoft.com.

For more information, see Teams preview won't open in Safari.

More information

There are some known issues you might run into when you try to sign in to Teams. See Why am I having trouble signing in to Microsoft Teams? for details.

As a best practice, validate and enable all trusted URLs for Teams and review the requirements in the following articles:

Third-party information disclaimer

The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.

Still need help? Go to Microsoft Community.