Problem

Sometimes after deploying webchat into your website, it is still not visible.

Cause

If the webchat widget does not load, this might be because your website has a Content-Security-Policy (CSP) applied, that prevents loading the widget script and images from remote websites; in this case “webchat.tactful.ai”.

Resolution

Add “webchat.tactful.ai res.cloudinary.com” to your Content Security Policy.

In Apache, edit your config file to:

Header set Content-Security-Policy "default-src 'self' 'unsafe-inline' 'webchat.tactful.ai' 'res.cloudinary.com';"


For Nginx:

add_header Content-Security-Policy "default-src 'self' 'unsafe-inline' 'webchat.tactful.ai' 'res.cloudinary.com';";