Dialogue Cloud

Hosting WebChat from a different domain

Note: An additional Anywhere365 WebAgent for Omnichannel license is required.
Note: An Enterprise license or higher is required to access these features.

It is possible to deploy the WebChat on another server from the one where the website is deployed. When doing this, the server needs to provide a Access-Control-Allow-Origin header set to either the domain that the main website is running on, or * to allow all domains to access the files. If this is omitted, this will cause CORS issues. Example of a web.config that sets the allowed origin to *:

Copy
XML
<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
    <system.webServer>
        <httpProtocol>
            <customHeaders>
                <add name="Access-Control-Allow-Origin" value="*"/>
            </customHeaders>
        </httpProtocol>
    </system.webServer>
 </configuration>