MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
281 stars 502 forks source link

Initializing SDK: Teams Gallatin domain #11505

Open Prasad-MSFT opened 3 weeks ago

Prasad-MSFT commented 3 weeks ago

Type of issue

Missing information

Feedback

Cross-cloud communication via SDK is not allowed due to security reasons, therefore Teams Gallatin domain is not added to the validOrigins. If an app wants to work in Gallatin, it needs to explicitly specify the Gallatin domain when initializing the SDK in the Gallatin deployment of their apps (using the validMessageOrigins parameter): https://learn.microsoft.com/en-us/javascript/api/@microsoft/teams-js/app?view=msteams-client-js-latest#@microsoft-teams-js-app-initialize

That would look something like this:

import { app } from '@microsoft/teams-js';
app.initialize(["https://teams.microsoftonline.cn"]);

Page URL

https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/using-teams-client-library?tabs=javascript%2Cmanifest-teams-toolkit

Content source URL

https://github.com/MicrosoftDocs/msteams-docs/blob/main/msteams-platform/tabs/how-to/using-teams-client-library.md

Author

@erikadoyle

Document Id

4ae8187e-a7e4-4b5a-6f38-da6bfa30f2d2

microsoft-github-policy-service[bot] commented 3 weeks ago

Hi Prasad-MSFT! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Prasad-MSFT commented 3 weeks ago

Hi @surbhigupta12, could you please help here to add this note in the documentation?