function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Megha SachaniaMegha Sachania 

click to dial in lightning

Hi everyone,

The click to dial within standard objects works, but use the lightning click to dial in a custom lightning application throws that error as mention below

Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-0137ae49-e851-4696-e48f-94f884b2d1c7' chrome-extension: 'unsafe-inline' 'unsafe-eval' https://sfdc.azureedge.net *.cs20.visual.force.com https://ssl.gstatic.com/accessibility/". Note that 'unsafe-inline' is ignored if either a hash or nonce value is present in the source list.

Please help me out to resolve this.

Thanks

 

AbhishekAbhishek (Salesforce Developers) 
Megha,

Your query is answered here,

https://salesforce.stackexchange.com/questions/215990/lightingcontainer-refused-to-load-the-script-https-www-youtube-com-iframe


For further reference check this,

https://trailblazers.salesforce.com/answers?id=9063A000000E3TuQAK


If it helps you and close your query by marking it as solved so that it can help others in the future.


Thanks.
Megha SachaniaMegha Sachania

Hi Abhishek,

Thanks for you help but for calling we are using 3rd party apis for that how could we resolve it?

AbhishekAbhishek (Salesforce Developers) 
3rd I haven't tried that part yet.

If I find anything let you.