Custom Protocol Links Not Opening in Microsoft Teams Desktop App, But Work in Browser

Ahmed Rashid | Xelion B.V 5 Reputation points
2025-03-17T08:23:20.18+00:00

I have a custom Teams tab where I use window.open() to open a protocol link (example.appserver:start). This works perfectly when running Microsoft Teams in a web browser, but it does not work inside the Microsoft Teams desktop app. However, window.open() does work for regular URLs (e.g., opening a webpage), so it's not being blocked entirely. Has anyone encountered this issue, and is there a workaround to make custom protocol links open in the Teams desktop app?

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,843 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 8,851 Reputation points Microsoft External Staff
    2025-03-17T12:36:50.2766667+00:00

    Microsoft Teams has certain restrictions on custom protocols for security reasons. The content-security-policy does limit which protocols are allowed within the Teams client and we are currently not supporting adding new protocols. In fact, over time we'd much rather shrink it and get to a point where we only render https: content within the Teams client.

    Thanks, 

    Prasad Das

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.