Whatever you do to try and fix issues with chat or CORS, please don't do this: paste Javascript in random places! π€£
Someone from (name removed to protect someone who probably was/is struggling) pasted a Javascript line that was supposed to configure the embedded chat - of all places! - in the head markup of the Experience site that hosted the chat. π€―
That resulted in the Javascript line appearing in the top of the chat and messing up the layout of the chat in a very mysterious and misleading way.
At first it looked like some error message but it didn't appear in the browser console, then the embedded chat snippet did contain that line, making it appear as a Salesforce glitch. But even after removed from the chat snippet, the issue persisted...
Looking again in the browser console at the chat iframe and seeing the URL gave me the hint: it had to do with Experience Cloud configuration. It was there, hidden in the head markup, which is supposed to contain HTML, not some random Javascript line like that! π€¦π»ββοΈπ€¦π½ββοΈπ€¦πΌπ
