Redirect across domains in a Microsoft Teams tab

10/05/2017

2 minutes to read

Contributors

In this article

In some cases, you might need to redirect the configuration or content page to a location on a different domain or subdomain. For example, suppose your configuration page begins on www.example.com. However, after a user who works for the Contoso Company signs in, your app needs to redirect to www.contoso.example.com (or perhaps even a different domain altogether, like www.anotherexample.com). If your app performs the redirects itself, it can no longer use the Microsoft Teams JavaScript library to receive or send information to Microsoft Teams.

Instead, you should request that Microsoft Teams perform the cross-domain redirects itself:

Ensure that the URL is included in the validDomains list in your manifest. For more information, see validDomains in the manifest schema reference.

The feedback system for this content will be changing soon. Old comments will not be carried over. If content within a comment thread is important to you, please save a copy. For more information on the upcoming change, we invite you to read our blog post.