You need to sign in to do that
Don't have an account?

Refused to connect to because it violates the following Content Security Policy directive
Hello,
I have below error on console.
what can be reason please ?
I have below error on console.
what can be reason please ?
aura_prod.js:688 [Report Only] Refused to connect to 'https://company--uat.lightning.force.com/aura?r=70&other.apex_Lead_Create.getResponsible=1' because it violates the following Content Security Policy directive: "connect-src https://static.lightning.force.com https://api.bluetail.salesforce.com https://staging.bluetail.salesforce.com https://preprod.bluetail.salesforce.com blob: *.visualforce.com https://company--uat--c.documentforce.com https://cs174.salesforce.com https://notification-service.sfproxy.null.fra.aws.sfdc.cl wss://notification-service.sfproxy.null.fra.aws.sfdc.cl".
I've come across related scenarios wherein the following helped
Configure Remote Site Settings(https://help.salesforce.com/s/articleView?id=sf.configuring_remoteproxy.htm&type=5), Adding Remote Site Settings(https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_remote_site_settings.htm), Create CSP Trusted Sites to Access Third-Party APIs(https://developer.salesforce.com/docs/atlas.en-us.232.0.lightning.meta/lightning/csp_trusted_sites.htm)
Related: https://salesforce.stackexchange.com/questions/379686/refused-to-load-the-script-as-it-violates-content-security-policy-while-working
If this information helps, please mark the answer as best. Thank you
All Answers
What action are you performing that is throwing this error? Thanks
I've come across related scenarios wherein the following helped
Configure Remote Site Settings(https://help.salesforce.com/s/articleView?id=sf.configuring_remoteproxy.htm&type=5), Adding Remote Site Settings(https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_remote_site_settings.htm), Create CSP Trusted Sites to Access Third-Party APIs(https://developer.salesforce.com/docs/atlas.en-us.232.0.lightning.meta/lightning/csp_trusted_sites.htm)
Related: https://salesforce.stackexchange.com/questions/379686/refused-to-load-the-script-as-it-violates-content-security-policy-while-working
If this information helps, please mark the answer as best. Thank you