Content-Security-Policy with azure communication services

Ralph van der Neut 6 Reputation points
2021-11-15T12:45:36.287+00:00

Everytime i start a ACS call using the calling js library.
I get the following error:

Refused to connect to 'wss://trouter-azsc-euno-0-a.trouter.skype.com/socket.io/1/websocket/<dynamic info>' because it violates the following Content Security Policy directive: "default-src 'self' 'unsafe-inline' 'unsafe-eval' https: data: <other url>

I tried adding "wss://trouter-azsc-euno-0-a.trouter.skype.com/socket.io/1/websocket" to "Content-Security-Policy" http response header, but that doesn't work. Because the url is dynamic on each call. I can't use a wildcard? What should i set in the Content Security Policy to make the error dissapear?

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
1,242 questions
{count} vote

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.