Skip to content
EveryKnockHelp

Your chat on your website

Security policy and browsers

Who can open itViewer: noOperator: noSupervisor: noAdmin: yes

This page is for whoever manages the website’s security headers. The production addresses are https://cdn.everyknock.ai (the widget host) and https://api.everyknock.ai (the chat service). A company on the demo service (its site key starts with xm_d_) has the same widget host and another chat service address: ask your EveryKnock contact for it. An install that runs on its own servers has its own two addresses: the widget host is the address of the script in your code, shown under Your details in the Chat studio’s install steps.

A website that sends no Content-Security-Policy header needs nothing from this page except, for voice typing, the microphone section.

Directive Allow Why
script-src The widget host The loader and the chat script, plain <script src> tags with no eval. With a nonce- or hash-based policy, add 'strict-dynamic': the loader carries your nonce, the scripts it adds do not
style-src The widget host; 'unsafe-inline' only for Safari before 16.4 The font stylesheet. The chat’s own styles are constructed stylesheets, which style-src does not police; older Safari gets a <style> element instead
font-src The widget host The look’s font, fetched only when the look uses one. With font-url="" neither this nor the stylesheet is needed. With your own font-url, allow its stylesheet under style-src and its font files under font-src
connect-src The chat service The settings, the chat, live replies and uploads. Blocked, the settings never arrive and the chat is not drawn
img-src data:, the chat service, and the hosts of your source cards’ thumbnails (https://i.ytimg.com for videos) Team members’ photos, the assistant’s pictures, thumbnails. A blocked thumbnail leaves its card without one
script-src and frame-src https://challenges.cloudflare.com Only when your company’s bot check runs with Cloudflare Turnstile
script-src and frame-src https://www.google.com and https://www.gstatic.com Only when your company’s bot check runs with Google reCAPTCHA

Added to a policy that allows only your own site, the lines for the production addresses read:

script-src 'self' https://cdn.everyknock.ai;
style-src 'self' https://cdn.everyknock.ai;
font-src 'self' https://cdn.everyknock.ai;
connect-src 'self' https://api.everyknock.ai;
img-src 'self' data: https://api.everyknock.ai https://i.ytimg.com;

Add to img-src the hosts your source cards’ thumbnails come from, which is usually your own website. With the Cloudflare Turnstile bot check, add https://challenges.cloudflare.com to script-src and a frame-src https://challenges.cloudflare.com; line. With Google reCAPTCHA, add https://www.google.com https://www.gstatic.com to script-src and a frame-src https://www.google.com https://www.gstatic.com; line.

What you see The directive to check
No chat at all, and the console says the chat’s settings “could not be reached” connect-src: the chat service
No chat at all, and no warning from the chat script-src: the widget host, so the first script never ran
The button reads “Chat unavailable — try again” script-src: the chat script is added by the first one, so a nonce-based policy needs 'strict-dynamic'
The chat is drawn in the wrong font style-src and font-src: the widget host
A team member’s photo, the assistant’s pictures or a source card’s thumbnail is missing img-src
“We couldn’t verify your browser. Please try again.” on the first message script-src and frame-src: the bot check’s addresses above
No microphone in the message box Permissions-Policy, below

The browser’s console names the blocked address and the directive that blocked it. See also When the chat cannot be drawn.

require-trusted-types-for 'script' is supported: the chat never inserts HTML. Its script addresses (the chat script, https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit and https://www.google.com/recaptcha/api.js?render=explicit) go through one policy named everyknock, which passes only those three. Google reCAPTCHA’s script loads further files of its own, which your page must let through by Google’s own policy names. A page with a trusted-types allow-list adds everyknock to it.

The microphone is not covered by the Content Security Policy. The chat runs inside your page, so it asks for the microphone under your website’s address and your Permissions-Policy.

Page Result
Permissions-Policy: microphone=() Blocked. Allow it with microphone=(self)
Served over plain http:// Recording is not possible

In both cases the chat shows no microphone, or a short message, never a broken button. The microphone is offered only when an Admin has set Voice typing to Team and visitors in the Chat studio and your plan includes it.

No cookies of its own (the Turnstile check, when used, is Cloudflare’s). Everything is kept separately for each chat service and site key, and the chat keeps no copy of its look or wording.

Storage Holds For how long
Local storage The chat’s id and its access key, whether it has closed, and when it was last used. This is what lets a visitor find their chat again on another page or a later visit Forgotten after 30 days without activity. EveryKnock also stops accepting the access key after 30 days without activity in the chat, so a copy taken from the browser stops working then
Local storage The unsent message, and a message sent that has not arrived yet 24 hours, or until it arrives
Local storage Whether files and voice are allowed, and which reply already alerted, across tabs Until replaced
Session storage Whether the window is open, the unread count, and whether the nudge was dismissed The browser tab

For what the chat sends with a message, see What the chat sends about your page.

Browsers Detail
Supported Chrome and Edge 111, Firefox 114, Safari and iOS Safari 16.4, and later
Older Below Chrome 85, Firefox 79 or Safari 14 the script cannot run: no launcher is shown, one error is logged, and the rest of the page is unaffected. Between that and the supported versions the chat may work but is not tested
Voice typing Needs a browser that can record audio, on a secure page

Reviewed

Source files for this page
  • apps/widget/README.md
  • apps/widget/src/launcher-shared.ts
  • apps/widget/src/config-request.ts
  • apps/widget/src/loader.ts
  • apps/widget/src/chatbot/storage.ts
  • apps/widget/src/chatbot/draft.ts
  • apps/widget/src/chatbot/useIntakeChat.ts
  • apps/dashboard/src/views/chatstudio/EmbedGuide.tsx
  • apps/widget/src/chatbot/challenge.ts
  • services/api/app/visitors/conversation_token.py