Magento – Magento 2 Refused to frame ‘https://www.facebook.com/’ because an ancestor violates the following Content Security Policy directive:

facebookmagento2

I have installed extension for integrate facebook messenger chat. but giving " Refused to frame 'https://www.facebook.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors https://www.facebook.com" in console and also messenger live chat application not appear in front end.
what should I do for get this work.

enter image description here

Best Answer

I'm guessing you updated to 2.3.5 version.

Just run this terminal command

php bin/magento module:disable Magento_Csp

More information here: https://maxchadwick.xyz/blog/magento-disable-csp

enter image description here

Related Topic