ivanovs
Giga Contributor

After doing some work on the virtual agent and embedding the solution in an internal SharePoint site I decided to share the properties needed to make the embedding work. The details provided on the service now docs site do not include all the necessarily information because there is no example of the values that need to be set on the properties. After contacting HI support and doing my own research I have found that the following way of setting the values works for all main browsers:

 Property: com.glide.cs.embed.csp_frame_ancestors Value:host-source https://<your_web_site_name>.com
 Property: com.glide.cs.embed.xframe_options Value: allow-from https://<your_web_site_name>.com

With the above property values you can use the remaining instructions on the ServiceNow docs site to embed the virtual agent in a external website: https://docs.servicenow.com/bundle/london-servicenow-platform/page/administer/virtual-agent/task/embed-va-standalone-client.html

 

Comments
smeadows2
Tera Contributor

Can you confirm what the values should be for each of these properties? I've been trying them but can't get this to work..

The SNOW docs are a bit confusing and don't seem to indicate the same values to enter; they even seem to differ at different points on their page.

I've also set glide.set_x_frame_options from true to false.

ivanovs
Giga Contributor

The values should be as follows:

Property: com.glide.cs.embed.csp_frame_ancestors

Value for it: host-source https://<your_web_site_name>.com

Example for the above might be host-source https://emeia-test.companya.local

Property:com.glide.cs.embed.xframe_options

Value for it:  allow-from https://<your_web_site_name>.com

Example for the above might be host-source https://emeia-test.companya.local or allow-from https://emeia-test.companya.local

 

The above  applies if you are using a non-internet facing site (I mean .local) but the same process can apply to any site you host it on whether it is .com or .org, etc.

SergioPita
Tera Contributor

Hi all,

 

I have tried to connect with our instance but the virtual agent is blocked, any idea?

find_real_file.png

Also allow-form is obsolet and doesn't work in chrome.

 

Thanks

 

 

Version history
Last update:
‎05-22-2019 11:58 PM
Updated by: