Live-Chat does not appear:-(

Hello,
i have the problem that the chat window does not appear on the client when Zammad is installed on a different server than the normal web server (i.e. on a server for the support-system). You always get the error message “refused to connect to ‚wss://ticket.*******/ws’ because it violates the following Content Security Policy directive: “default-src https: data: ‘unsafe-inline’ ‘unsafe-eval’”. Note that ‘connect-src’ was not explicitly set, so ‘default-src’ is used as a fallback.” in the Console

Infos:

  • Used Zammad version:
    newest

  • Used Zammad installation source: (source, package, …)
    deb-Packages

  • Operating system:
    Debian 10

  • Browser + version:
    Any

Expected behavior:

  • Show the live-chat

Actual behavior:

  • refused to connect to ‚wss://ticket.*******/ws’ because it violates the following Content Security Policy directive: “default-src https: data: ‘unsafe-inline’ ‘unsafe-eval’”. Note that ‘connect-src’ was not explicitly set, so ‘default-src’ is used as a fallback.

Steps to reproduce the behavior:

  • Install Zammad on a second server (not the normal web server)

Your webserver proberbly sets own content-security headers which do not allow to talk to your Zamamd installation via websocket.
Solution is to add “connect-src” with the domainname your chat needs to connect to.

Afterwards you should be fine.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.