Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

DDSameera's avatar

Refused to frame xxxxx.com, Content Security Policy Error

I added Facebook messenger code in to my laravel Application ,now i can see this error . could you please help me to resolve this

https://snipboard.io/jeirSs.jpg

0 likes
4 replies
Snapey's avatar

sites can add info to their content saying if showing in an iframe is allowed.

Facebook dont want you ro do this, so they block it

It wont be possible to override this

Snapey's avatar

why do they introduce?

To track your visitors of course.

To use the Chat Plugin, you must include a version of the Facebook JavaScript SDK that contains the Customer Chat SDK in the page where the plugin will be rendered.

You are trying to embed facebook content in an iFrame

Please or to participate in this conversation.