Why am I getting an "invalid chatbox code" or "Invalid Website" error ?
*This error code is in general due to a configuration issue on your end*
1. Lock chatbox to domain option
For security concerns, we added an option "Lock the chatbox to website domain (and sub-domains)". By enabling this option, Crisp disallow other website domains to use your Crisp.
- If your Crisp website domain is www.mydomain.com , then your chatbox is locked for mydomain.com
- If you are using *localhost* , your chatbox is locked to mydomain.com
*Otherwise, just disable it:*
- Navigate to Settings > Workspace Settings > Chatbox Security
- Disable "Lock the chatbox to website domain (and sub-domains)"

2. Wrong chatbox code
Maybe you did a wrong copy-paste. In general, your chatbox code should look like this:
<script type="text/javascript">window.$crisp=[];window.CRISP_WEBSITE_ID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";(function(){d=document;s=d.createElement("script");s.src="https://client.crisp.chat/l.js";s.async=1;d.getElementsByTagName("head")[0].appendChild(s);})();</script>
3. You deleted your website
You may have deleted your website from the Crisp dashboard. In this case, go to https://app.crisp.chat/settings/websites/ and check if your website is missing.
*If using Wordpress*, please relink your website, by going to your Wordpress Admin Panel, and then Crisp Livechat admin settings. *Relink your Crisp* then.
Bijgewerkt op: 12/02/2026
Dankuwel!