简体   繁体   中英

Facebook Customer Chat Plugin inside an iframe

Is it possible to make Customer Chat Plugin works inside an iframe?

It's adding content-security-policy: frame-ancestors IFRAME_DOMAIN and show Refused to frame 'https://www.facebook.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors IFRAME_DOMAIN

Yes, FB Chat Plugin is intended to be embedded.

You have just to whitelist domains where Chat allowed to operate.

And maybe you'll have to add intent: and fb-messenger: schemes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM