Cross-domain session support
Javascript for sessions across multiple domains or sub-domains.

Cross-domain sessions

In some cases, several of your domains or sub-domains need to be visited in a single session.
To enable this, add the following javascript snippet within our web SDK to all required pages.
Trusted origins must be served over HTTPS and include the full domain or sub-domain, with no trailing slash, url path, or parameters.
1
CobrowseIO.trustedOrigins = [
2
'https://myexample.com', // origin to trust
3
'https://my-other-website.net', // another origin to trust
4
'https://intranet.myexample.com:8443' // an origin with a port to trust
5
];
6
CobrowseIO.start(); // before the start call
Copied!
This provides Cobrowse for Web with a list of trusted origins to allow your session to continue on. All trusted origins must be listed.

Supported browsers

  • Google Chrome
  • Mozilla Firefox
  • Internet Explorer 11
Cross-domain support will fail in a browser's private or "incognito" mode.
Support for Apple Safari is still being explored at this time.
Last modified 2d ago