How can we help you?

Content Security Policy for Velaro Chat and Velaro Messaging

If your website sends a Content Security Policy (CSP), it must allow the Velaro hosts below or the widget will not load, or chat will open but messages will not arrive. Just add the lines in step 1 to your existing policy. This works for Velaro Chat (v10 and v11) and Velaro Messaging, so you do not need to know which one you have.

Step 1: Add These Lines

If your policy already has a directive (for example connect-src), add the values to it instead of creating a second one.

script-src  https://*.velaro.com https://eastprodcdn.azureedge.net;
connect-src https://*.velaro.com wss://*.velaro.com https://*.service.signalr.net wss://*.service.signalr.net;
frame-src   https://*.velaro.com https://eastprodcdn.azureedge.net;
img-src     https://*.velaro.com https://eastprodcdn.azureedge.net https://galleryuseastprod.blob.core.windows.net https://velaromessagingprod.blob.core.windows.net;
media-src   https://*.velaro.com https://galleryuseastprod.blob.core.windows.net https://velaromessagingprod.blob.core.windows.net;

Why are there four hosts that are not velaro.com? Today some widget scripts, images, files and real-time connections are still served from Microsoft Azure host names (eastprodcdn.azureedge.net, galleryuseastprod.blob.core.windows.net, velaromessagingprod.blob.core.windows.net and *.service.signalr.net). The *.velaro.com wildcard does not cover them, so keep them in your policy. We are moving these to velaro.com names. Your policy keeps working when that happens, and we will tell you when it is safe to remove the Azure hosts. Until then, do not remove them.

Prefer Not to Use a Wildcard? List Every Host

The wildcard *.velaro.com allows every current and future subdomain of velaro.com, including ones the widget does not use. If your security review does not allow that, list these hosts instead and keep the list current yourself. Real-time hosts need both https:// and wss:// entries: the browser first makes an HTTPS request, then opens the WebSocket.

Velaro Chat (v10 and v11)

HostDirectivePurpose
api-main-us-east.velaro.comconnect-srcAccount and widget settings
api-visitor-us-east.velaro.comconnect-srcVisitor sessions and invitations
api-engagement-us-east.velaro.comconnect-srcChat and availability
api-routing-us-east.velaro.comconnect-srcRouting (call and queue widgets)
signalr-engagement-us-east.velaro.com (https and wss)connect-srcReal-time chat
signalr-engagement-app-prd.velaro.com (https and wss)connect-srcReal-time chat
livefluence-asrs-eastus.velaro.com (https and wss)connect-srcReal-time chat
cobrowse.velaro.com (https and wss)connect-srcCo-browsing
cdn-us-east.velaro.comscript-src, frame-src, img-srcWidget scripts and images
storage.velaro.comimg-src, media-srcChat images and files
eastprodcdn.azureedge.netscript-src, frame-src, img-srcWidget scripts and images (not under velaro.com)
galleryuseastprod.blob.core.windows.netimg-src, media-srcChat images and files (not under velaro.com)
*.service.signalr.net (https and wss)connect-srcReal-time chat (not under velaro.com)

Velaro Messaging

HostDirectivePurpose
messaging.velaro.comscript-src, frame-src, connect-srcWidget script and chat window
workspace.velaro.comscript-src, frame-src, connect-srcWidget script and chat window (alternate host)
api-messaging-us-east.velaro.comconnect-srcMessaging API
velaromessagingprod.blob.core.windows.netimg-src, media-srcImages, files and sounds (not under velaro.com)
*.service.signalr.net (https and wss)connect-srcReal-time connection (not under velaro.com)

If you run only one platform you only need that platform's rows. We still recommend listing both, because accounts can move between platforms and a listed host does not mean it is in use today.

Testing Your Policy

  1. Update your CSP, then reload the page that hosts the chat, signed in if your site requires it. A logged-in area often sends a different policy than your public pages.
  2. Open your browser developer tools and look in the Console for messages that begin with "Refused to load" or "Refused to connect". The host named in the message is the one to add.
  3. Start a chat, have an agent accept and reply, and confirm the reply appears.
SymptomLikely causeFix
Widget does not load ("Refused to execute script")Missing script-src entryAdd the script hosts
Chat opens but agent replies do not appearA real-time host is missing from connect-srcAdd the real-time hosts with both https:// and wss://
Chat window is blankMissing frame-src entryAdd the widget hosts to frame-src
Images, files or sounds missingMissing img-src or media-src entryAdd the storage hosts

More

Using a nonce or a hash? See Content Security Policy (CSP) and Velaro for nonce, hash and subresource integrity examples. Velaro Messaging also supports a nonce on the embed script tag.

Your Content Security Policy is your own decision and your own responsibility. This article is general information about the hosts our widgets use. Hosts under velaro.com may be added or changed over time; with the wildcard you need no change, with an explicit list keeping it current is up to you. Where we can, we tell account contacts about host changes in advance, but we do not guarantee notice or timing.

Share: Email

Was this article helpful?