We have added a post-chat survey to a chat window that's added to a community or a website. But when I am ending the chat and clicking on give feedback button I am getting below msg- mydomain.force.com refused to connect. When I am replicating the error then in browser console I am getting below error -- Refused to frame 'https://mydomain.force.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
Please check another similar question here
Yup, we've had the same issue.
The solution is to 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.