--- title: "CoBrowse multiple domain/subdomain support" slug: "multiple-domain-and-subdomain-support" description: "Enable seamless CoBrowse sessions across multiple domains with deployment keys, ensuring secure cross-domain communication for integrated websites." updated: 2024-02-02T15:39:28Z published: 2024-02-02T15:39:28Z canonical: "docs.screenmeet.com/multiple-domain-and-subdomain-support" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.screenmeet.com/llms.txt > Use this file to discover all available pages before exploring further. # Multiple Domain and Subdomain support ## Deployments ScreenMeet supports CoBrowse sessions traversing through multiple domains and subdomains which are part of an integrated website. By defaults browsers restrict this sort of cross domain communication so additional setup and security considerations are required. CoBrowse has a concept of a set of connect domains which we called a "deployment". Each deployment is a set of website domains which are allowed to communicate which each other passing the CoBrowse session information to continue the session. Each deployment also is assigned it's own deployment key. Here is an example of a possible deployment, so if a customer began a CoBrowse session on www.golf.example.com they could navigate to sales.golf.example.com and help.golf.example.com and the session would follow them to each page. However, if the user were to either open another a tab or navigate to www.tennis.example.com or one of the other sub-domains not in the deployment, their current CoBrowse session will not follow them. If you wish to support all subdomains you may add "*" to a indicate that any subdomain is supported. Deployment key: "ABCDEF" | www.golf.example.com | | --- | | sales.golf.example.com | | help.golf.example.com | Deployment key: "123456" | www.tennis.example.com | | --- | | sales.tennis.example.com | | help.tennis.example.com | Deployment key: "YYYZZZ" | *.example.com | | --- | Deployment keys are organization specific and bind your CoBrowse sessions to the organization that the deployment key was created on.If you're changing environments (ex: moving from stage to QA or QA -> prod), you must generate a new deployment key and replace the key within the snippet on your page. ![](https://cdn.document360.io/9da39725-20e5-434f-83a4-d630456099dc/Images/Documentation/image-1706888356513.png) ## Setup To enable using deployments the following needs to be added to every page's javascript. ```javascript window.Cobrowse = window.Cobrowse || {}; window.Cobrowse.modal = window.Cobrowse.modal || {commandQueue:[], useHotkeys: true}; //hotkeys not required for cross-domain support window.Cobrowse.modal.commandQueue.push(() => { window.Cobrowse.modal.register("YOUR_DEPLOYMENT_KEY"); }); ``` At the end of the body of each page an additional session carrying iframe is required. ```markup ```