WordPress + Disqus + refused executing inline script WordPress + Disqus + refused executing inline script wordpress wordpress

WordPress + Disqus + refused executing inline script


This isn't something you can (or should) meaningfully solve. It's up to the extension vendor to properly implement themselves. The fact is the extension is attempting to inject inline code and it's being stopped by the Content Security Policy because the CSP is made to block it. As it should, since the extension is indistinguishable from malware from it's perspective.

You could (but should not) simply add rules to your site's Content Security Policy to allow the extension to run...but this is potentially dangerous, incredibly case-specific, and should basically only ever be done in an enterprise context in which everyone has a (poorly coded) browser extension that is required to work with your site. And even then re-coding the extension would generally be preferred.


How should I disable the security policy for chrome extensions?

Not. Additionally you can not.

I need to add an appropriate entry to the Content-Security-Policy to allow chrome extensions.

The CSP of extensions is part of the (local) extension.

while the comments are shown at the bottom of the webpage, they are white Sounds like a matter of CSS to me ... what about color: black; for your text?

Or short: Websites are not able to mess with extensions. Which is good - I don't want facebook to disable my CSP and send my personal porn preferences (from PornLiner addon) to my profile.