Refused to display… frame-ancestors https://www.facebook.com

前端 未结 10 1206
一个人的身影
一个人的身影 2020-12-28 12:45

I have included Facebook customer chat plugin on my website. It works fine for the first day. From the second day, it\'s not working. I have seen an error message in Google

10条回答
  •  -上瘾入骨i
    2020-12-28 13:29

    I think that's not coming from facebook but your website. Your browser refuses to display an iframe from a "bad" source, in this case facebook.com.

    You may read

    • https://developer.mozilla.org/en-US/docs/Web/Security/CSP
    • https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy

    Or greenlight any requests from facebook like in this example (which is not the best way to do it, as it undercuts some major protection against XSS):

    Link at Stackoverflow: Content-Security-Policy issue

提交回复
热议问题