LightningContainerExamples
LightningContainerExamples copied to clipboard
'Refused to evaluate a string as JavaScript because 'unsafe-eval'
I encountered this error when clicking Call Apex Controller button:
'Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' chrome-extension: https://sfdc.azureedge.net *.ap6.visual.force.com https://ssl.gstatic.com/accessibility/ 'nonce-f47c95bfc7e13521c5865802b1ea4e49f6d957f7a8e42f91d68aee2c5a151f89'". '. Logged in?
Any idea how to fix this?
It seems like your chrome extension is making any call to the external api which is not included in CSP trusted sites of your org. I suggest disable the chrome extensions and then check once