Skip to main content The new Salesforce certifications experience is live! Visit Trailhead Academy to explore your new certifications homepage.
error

We made a wrong turn. Try again.

When I set up a basic Einstein bot on my Community, it doesn't work. It works fine in the Preview section, but when I go to my community - either as a logged in user or as a guest user - it still says "Agent Offline".

 

Now, when I am configuring my snap-in, I am getting this error: Access to https://d.la3-c1-ia2.salesforceliveagent.com/chat/rest/Visitor/Settings.jsonp?Settings.prefix=Visitor&Settings.buttonIds=[5734P0000000M8U]&Settings.updateBreadcrumb=1&callback=embedded_svc.liveAgentAPI.connection.handlePing&deployment_id=5724P0000000L5H&org_id=00D4P000000z8gH&version=36 for script resources violates your Content Security Policy (CSP). To get access to those script resources, change your Script Security Level on the Security page in your community's settings. Then try whitelisting the host.

 

So then I whitelist the host (Settings -> Security -> Whitelist URL), and that does... nothing. I've whitelisted a couple other sites as well, lowered my Security Setting to "Allow Inline Scripts and Script Access to Whitelisted Third-party Hosts", still nothing.
7 answers
  1. May 1, 2020, 3:04 AM
    Responding to this thread as folks are still facing the issue and no resolution is suggested here.

     

    I was also facing this issue while using Embedded Service Chat in a community, here is what I did to fix it:

     

    1. Removed previously entered Chat specific JS code from Head Markup (Go to Builder settings > Advanced > Edit Head Markup)

     

    2. Changed Script Security Level to 'Allow Inline Scripts and Script Access to Whitelisted Third-party Hosts' (Go to Builder settings > Security > Content Security Policy (CSP))

     

    3. Added Chat Site URL (url which shows in error something like https://d.*.salesforceliveagent.com) to Trusted Sites for Scripts (Go to Builder settings > Security > Trusted Sites for Scripts) 

     

    Hope this will help.
0/9000