Forum Discussion

MatthiasAbele's avatar
MatthiasAbele
Copper Contributor
Feb 22, 2024

Call URL Handler leads to crash in new Teams

I have a problem with an application which we are developing.

This happens only in the new Teams Application.

 

Basically I need to start an external Program, which is registered in Windows with a specific URL Handler. It worked fine in the old version. The command I use is a simple:

 

 

window.open(`myOwnUrlHandler:${u8sSIPAddress}`, "_self");

 

 

The error I get is:

 

Refused to frame '' because it violates the following Content Security Policy directive: "frame-src blob: data: https: acrobat2018: ales: arcb: blocked: bookmark: ciscotel: cloudya: com.bt.cloudwork.app: com.rainbowoffice.app: com.ringcentral.vodafonebusiness.app: companyportal: deltapath-engage: devtools: jamfselfservice: mailto: maxuccall: microsoft-edge: ms-access: ms-actioncenter: ms-appx-web: ms-excel: ms-infopath: ms-powerpoint: ms-project: ms-publisher: ms-settings: ms-spd: ms-teams: ms-visio: ms-whiteboard-preview: ms-word: msteams: notes: odopen: officeathand: onenote: openapp: opentouch: pdf: rcapp: rctelus: sebs: sip: sips: softwarecenter: suknil: tel: unifyoffice: vscode-insiders: vscode: vsls: wazo: webex: webextel: x-apple.systempreferences:".

 

What has changed? Am I doing something wrong?

 

Thanks for any suggestion...

9 Replies

    • MatthiasAbele's avatar
      MatthiasAbele
      Copper Contributor

      ChetanSharma-msftI call window.open like this:

      window.open("test-url-handler:email address removed for privacy reasons", "_self");

       

      test-url-handler is a valid url handler registered in windows. If I call "test-url-handler:email address removed for privacy reasons" from a browser it actually opens the registered application as desired.

       

      Thanks

       

      Matthias

      • ChetanSharma-msft's avatar
        ChetanSharma-msft
        Icon for Microsoft rankMicrosoft
        Hello MatthiasAbele - Thanks for sharing the information.
        This issue is because of violation of Content Security Policy in Teams.
        So, we will confirm with engineering team and let you know the updates whether it is not supported or a bug.

Resources