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
BonaaBonaa 

Post-Chat URL - Shows error refused to connect

Created a Chat setup and in the chat button configuration I have given post chat url to external site.
But that site is not loading, it shows refused to connect.
How we can resolve this.
SwethaSwetha (Salesforce Developers) 
HI Bonaa,
Go to the Site page in Salesforce (Setup > Develop > Sites) and then add a Trusted Domains for Inline Frames.
Make sure you verify your Clickjack Protection Level too. A value of Allow framing of site pages on external domains (Good protection) or lower will work.

Similar ask https://salesforce.stackexchange.com/questions/289106/content-security-policy-in-embedded-services-post-chat-vf-page/367021#367021

If this information helps, please mark the answer as best. Thank you