+ Start a Discussion
Luke Vang 52Luke Vang 52 

CSP Content-Security-Policy issue


I am getting an internal server error message and a CSP Content-Security Policy issue wanring, but I'm not loading any sort of inline java script. This is a plain and simple plain lightning component not using any external javascript. I've tried to remove my controllers and helpers but the error is still there even if my component is empty.

An internal server error has occurred
Error ID: 194074567-37762 (827702864)

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-null' chrome-extension: https://sfdc.azureedge.net *.cs25.visual.force.com https://ssl.gstatic.com/accessibility/". Either the 'unsafe-inline' keyword, a hash ('sha256-R9GNuwxgywl6/B01T8tc1l8/gyaet50qijLuAzbSndw='), or a nonce ('nonce-...') is required to enable inline execution.

NagendraNagendra (Salesforce Developers) 
Hi Luke,

Sorry for this issue you are encountering.

May I suggest you please check with below post from the forums community which might help. But as you are saying that you are not loading any javascript code in your component may I request you please post the component code so that we can look into it and can help you.