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)
| Host | Directive | Purpose |
|---|---|---|
| api-main-us-east.velaro.com | connect-src | Account and widget settings |
| api-visitor-us-east.velaro.com | connect-src | Visitor sessions and invitations |
| api-engagement-us-east.velaro.com | connect-src | Chat and availability |
| api-routing-us-east.velaro.com | connect-src | Routing (call and queue widgets) |
| signalr-engagement-us-east.velaro.com (https and wss) | connect-src | Real-time chat |
| signalr-engagement-app-prd.velaro.com (https and wss) | connect-src | Real-time chat |
| livefluence-asrs-eastus.velaro.com (https and wss) | connect-src | Real-time chat |
| cobrowse.velaro.com (https and wss) | connect-src | Co-browsing |
| cdn-us-east.velaro.com | script-src, frame-src, img-src | Widget scripts and images |
| storage.velaro.com | img-src, media-src | Chat images and files |
| eastprodcdn.azureedge.net | script-src, frame-src, img-src | Widget scripts and images (not under velaro.com) |
| galleryuseastprod.blob.core.windows.net | img-src, media-src | Chat images and files (not under velaro.com) |
| *.service.signalr.net (https and wss) | connect-src | Real-time chat (not under velaro.com) |
Velaro Messaging
| Host | Directive | Purpose |
|---|---|---|
| messaging.velaro.com | script-src, frame-src, connect-src | Widget script and chat window |
| workspace.velaro.com | script-src, frame-src, connect-src | Widget script and chat window (alternate host) |
| api-messaging-us-east.velaro.com | connect-src | Messaging API |
| velaromessagingprod.blob.core.windows.net | img-src, media-src | Images, files and sounds (not under velaro.com) |
| *.service.signalr.net (https and wss) | connect-src | Real-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
- 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.
- 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.
- Start a chat, have an agent accept and reply, and confirm the reply appears.
| Symptom | Likely cause | Fix |
|---|---|---|
| Widget does not load ("Refused to execute script") | Missing script-src entry | Add the script hosts |
| Chat opens but agent replies do not appear | A real-time host is missing from connect-src | Add the real-time hosts with both https:// and wss:// |
| Chat window is blank | Missing frame-src entry | Add the widget hosts to frame-src |
| Images, files or sounds missing | Missing img-src or media-src entry | Add 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.
Was this article helpful?