LightningContainerExamples icon indicating copy to clipboard operation
LightningContainerExamples copied to clipboard

'Refused to evaluate a string as JavaScript because 'unsafe-eval'

Open vinhhungle opened this issue 7 years ago • 1 comments

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?

vinhhungle avatar Jan 05 '18 15:01 vinhhungle

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

rahulmalhotra avatar Aug 08 '18 13:08 rahulmalhotra