Skip to content

How to solve accesiBee csp error in magento 2

In my magento 2 store we are facing an issue with accessiBe where accessiBe contents are not loading, when i check the console seeing the below error.
enter image description here

when we reach accessiBe team they have given meta tag like below and told to add in the header tag.

<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' *.acsbapp.com *.acsbap.com acsbap.com acsbapp.com;connect-src 'self' 'unsafe-inline' *.acsbapp.com *.acsbap.com acsbap.com acsbapp.com *.wikipedia.org;media-src 'self' 'unsafe-inline' data:;img-src 'self' 'unsafe-inline' data: *.acsbapp.com *.acsbap.com acsbap.com acsbapp.com;style-src 'unsafe-inline'"/>

But when i add this tag in the header its working but its restricting other third party csp’s.

to resolve this i want add above permission in the csp_whitelist.xml fil.

But how can i convert above meta tag data in the csp_whitelist.xml format.

Thanks!