function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
DavidCapturDavidCaptur 

Is there a way of hiding Salesforce OrgID in Public Website for LiveChat?

Hello,

We've configured Salesforce LiveChat & Chatbot on our salesforce sandbox environment and it's working well. The only thing we noticed is that to hook it up to our public site we had to keep the org ID itself exposed in the source of the page itself, meaning when it goes live, it would be publically available to any internet user which is undesirable and poses a security risk. Is there anything we can do to mask / hide the value?

Kind Regards,
David

Best Answer chosen by DavidCaptur
EllEll
I don't think there's anything you can really do when it's a client-side value that needs to be hardcoded, even if you tried some basic obsfucation or encoding if someone really wanted to they'd be able to reverse whatever you've done.

Checking Salesforce's own website source they haven't got it masked at all - if anyone would have it masked if it was possible I would assume they would!
<div class="liveagent-data" data-liveagent-orgid="00D000000000062" data-liveagent-btnid="57330000000DkQU" data-liveagent-depid="572300000009XhK" data-liveagent-formurl="https://www.salesforce.com/uk/form/contact/contactme/?d=70130000000Fm5e" data-liveagent-endpointurl="https://d.la1-c2-phx.salesforceliveagent.com/chat">
That being said I can't really think of what you could even do with someones org ID