{"id":19588,"date":"2024-03-13T10:26:33","date_gmt":"2024-03-13T17:26:33","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/?p=19588"},"modified":"2024-03-13T10:26:33","modified_gmt":"2024-03-13T17:26:33","slug":"action-required-ensure-your-microsoft-teams-apps-are-ready-for-upcoming-domain-changes","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/action-required-ensure-your-microsoft-teams-apps-are-ready-for-upcoming-domain-changes\/","title":{"rendered":"Action required: ensure your Microsoft Teams apps are ready for upcoming domain changes"},"content":{"rendered":"<p>In April 2023, <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/microsoft-365-blog\/introducing-cloud-microsoft-a-unified-domain-for-microsoft-365\/ba-p\/3804961\">Microsoft announced<\/a> that it would be undertaking a multi-year effort to reduce domain fragmentation among authenticated, user-facing Microsoft 365 apps and services by bringing them onto a single, consistent and cohesive domain: <strong>cloud.microsoft<\/strong>. This consolidation will help improve security, administration, and user experience across the board, and will ultimately lay a foundation for better and tighter integration across the Microsoft 365 ecosystem.<\/p>\n<p>As we prepare to migrate the Teams, Outlook, and Microsoft 365 web apps to the cloud.microsoft domain, <strong>developers of Teams apps \u2013 including those that run on Outlook and Microsoft 365 \u2013 need to take the actions described below to ensure that those apps continue to function on the new domain<\/strong>. If no action is taken, your app may not render in the <em>new domain<\/em> (teams.cloud.microsoft) when it goes live in June 2024. If you are unable to update your app before that time, any tenant running your app will remain on teams.microsoft.com while we work with you to make the necessary changes.<\/p>\n<p>This change impacts embedded applications where an external web app is rendered inside Teams, Outlook or Microsoft 365. If your app falls into this category, it will be affected.<\/p>\n<h2>How to prepare your app for cloud.microsoft<\/h2>\n<p>Today, apps that embed their web content in a Microsoft 365 host application such as Teams, Outlook, or Microsoft365.com run on a set of inherently trusted domains that are hardcoded in the <a href=\"https:\/\/learn.microsoft.com\/en-us\/microsoftteams\/platform\/tabs\/how-to\/using-teams-client-library?tabs=javascript%2Cmanifest-teams-toolkit\">TeamsJS <\/a>client library. To support the rollout of applications under cloud.microsoft domain and make future cross domain app integration more seamless, Microsoft will migrate this list of trusted domains to a new CDN endpoint to be called on app initialization. This change was released in early January 2024 as part of Teams JS version 2.19 release. This new list will be dynamic, which will limit the impact of any future domain changes on your app.<\/p>\n<p>To avoid any breaking changes to your app in the new domain, you will need to perform the following actions:<\/p>\n<ol>\n<li>Upgrade <a href=\"https:\/\/www.npmjs.com\/package\/@microsoft\/teams-js\">Teams JS library<\/a> to version 2.19 or higher.<\/li>\n<li>Update your x-frame-options\/CSP headers to allow for the new domains. To ensure the app keeps working across existing and future Microsoft 365 hosts, please ensure to allow &#8220;*.cloud.microsoft&#8221;.<\/li>\n<\/ol>\n<h2>Timeline and impact:<\/h2>\n<p>To prepare your app for the transition to teams.cloud.microsoft, please complete the changes above as soon as you are able. The teams.cloud.microsoft domain is now available for testing, with full operation alongside teams.microsoft.com expected in June. At that time, the expected user experience will be as follows:<\/p>\n<p>App opened in teams.microsoft.com:<\/p>\n<ul>\n<li>Everything will work as expected.<\/li>\n<\/ul>\n<p>App opened in teams.cloud.microsoft:<\/p>\n<ul>\n<li><span style=\"color: #339966;\">CTAs complete<\/span>: Everything will work as expected.<\/li>\n<li><span style=\"color: #ff0000;\">CTAs <em>not<\/em> complete<\/span>: Error message given with guidance for the user to navigate to teams.microsoft.com to use the app.<\/li>\n<\/ul>\n<p>The transition to cloud.microsoft will benefit users and developers across the Microsoft 365 ecosystem. We are excited to take the next steps toward bringing Teams, Outlook, and Microsoft 365 onto the unified domain, and extending those benefits to app developers as well.<\/p>\n<h2>More information<\/h2>\n<ul>\n<li><a href=\"https:\/\/aka.ms\/teams-ocdi-instructions\">Prerequisites | Microsoft Learn<\/a><\/li>\n<li><a href=\"https:\/\/learn.microsoft.com\/en-us\/microsoftteams\/platform\/m365-apps\/extend-m365-teams-personal-tab?tabs=manifest-teams-toolkit#configure-content-security-policy-headers\">Extend a Teams personal tab app across Microsoft 365 &#8211; Teams | Microsoft Learn<\/a><\/li>\n<li><a href=\"https:\/\/techcommunity.microsoft.com\/t5\/microsoft-365-blog\/introducing-cloud-microsoft-a-unified-domain-for-microsoft-365\/ba-p\/3804961\">Introducing cloud.microsoft: a unified domain for Microsoft 365 apps and services &#8211; Microsoft Community Hub<\/a><\/li>\n<\/ul>\n<p><em>Follow us on <a href=\"http:\/\/twitter.com\/microsoft365dev\">X (Twitter) \/ @Microsoft365Dev<\/a> and subscribe to our <a href=\"https:\/\/www.youtube.com\/microsoft365developer\">YouTube channel<\/a> to stay up to date on the latest developer news and announcements.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We are reducing domain fragmentation among authenticated, user-facing Microsoft 365 apps and services by bringing them onto a single, consistent and cohesive domain: cloud.microsoft.<\/p>\n","protected":false},"author":151303,"featured_media":19594,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1,128],"tags":[],"class_list":["post-19588","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-365-developer","category-microsoft-teams"],"acf":[],"blog_post_summary":"<p>We are reducing domain fragmentation among authenticated, user-facing Microsoft 365 apps and services by bringing them onto a single, consistent and cohesive domain: cloud.microsoft.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/19588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/151303"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=19588"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/19588\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/19594"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=19588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=19588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=19588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}