Title: CSP Errors
Last modified: February 9, 2025

---

# CSP Errors

 *  Resolved [louisvillebourboninn](https://wordpress.org/support/users/louisvillebourboninn/)
 * (@louisvillebourboninn)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/csp-errors/)
 *     ```wp-block-code
       Refused to execute inline script because it violates the following Content Security Policy directive: "script-src *.facebook.com *.fbcdn.net *.facebook.net 127.0.0.1:* blob: data: 'self' 'inline-speculation-rules' 'nonce-f6KHVZeU' 'wasm-unsafe-eval' https://*.google-analytics.com *.google.com". Either the 'unsafe-inline' keyword, a hash ('sha256-aU1b2MDj4Gvp8L6QSXvoKx7dCbT0M6OWmvgRx2IAhUI='), or a nonce ('nonce-...') is required to enable inline execution.
       ```
   
 * I’m getting the above error for lwi_ads_insights.php?app_id=221646389321681&channel
   =https%3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconne…
 * and the same error for lwi_ads_creation.php?app_id=221646389321681&channel=https%
   3A%2F%2Fstaticxx.facebook.com%2Fx%2Fconne…
 * It appears to be reading a CSP policy that comes from Facebook because the one
   it shows in the example is not mine. (I put ‘unsafe-inline’ in my script-src 
   and I still get this error; plus I don’t use any wildcards in my CSP).
 * Any suggestions?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Marija](https://wordpress.org/support/users/marijastuntcoders/)
 * (@marijastuntcoders)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/csp-errors/#post-18296623)
 * Hello, and thank you for reaching out.
 * Please tell us when and where does this error appear, is it being logged via 
   your theme, or a different plugin?
 * Kind regards,
   Marija
 *  Thread Starter [louisvillebourboninn](https://wordpress.org/support/users/louisvillebourboninn/)
 * (@louisvillebourboninn)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/csp-errors/#post-18296873)
 * It shows up in the Developer Tools.
 *  Thread Starter [louisvillebourboninn](https://wordpress.org/support/users/louisvillebourboninn/)
 * (@louisvillebourboninn)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/csp-errors/#post-18296894)
 * Here is an excerpt from the current CSP policy, which is uber-permissive. I’ll
   tighten it up after I get everything to work. Didn’t want my policy to interfere
   right now.
 *     ```wp-block-code
       Header set Content-Security-Policy: "default-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval' www.facebook.com connect.facebook.net www.googletagmanager.com static.cloudflareinsights.com code.jquery.com louisvillebourboninn.com;   ...
       ```
   
 * The policy continues but this is the part related to the error)
 *  Plugin Support [Marija](https://wordpress.org/support/users/marijastuntcoders/)
 * (@marijastuntcoders)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/csp-errors/#post-18299163)
 * Hello,
 * Can you please check if the error is still there after disabling the Meta pixel
   for WordPress plugin?
 * Kind regards,
   Marija
 *  Plugin Support [Marija](https://wordpress.org/support/users/marijastuntcoders/)
 * (@marijastuntcoders)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/csp-errors/#post-18320809)
 * Hi [@louisvillebourboninn](https://wordpress.org/support/users/louisvillebourboninn/)
 * Just wanted to check if you are still having this issue, and if you were able
   to check if this error is still present after disabling the Meta pixel for WordPress
   plugin?
 * Kind regards,
   Marija
 *  Plugin Support [Marija](https://wordpress.org/support/users/marijastuntcoders/)
 * (@marijastuntcoders)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/csp-errors/#post-18326860)
 * Hi [@louisvillebourboninn](https://wordpress.org/support/users/louisvillebourboninn/),
 * Since we haven’t heard back from you in a while, we will be marking this issue
   as resolved. Please feel to reach out again, should you have any further issues
   with the plugin.
 * Kind regards,
   Marija

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘CSP Errors’ is closed to new replies.

 * ![](https://ps.w.org/official-facebook-pixel/assets/icon.svg?rev=3158868)
 * [Meta pixel for WordPress](https://wordpress.org/plugins/official-facebook-pixel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/official-facebook-pixel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/official-facebook-pixel/)
 * [Active Topics](https://wordpress.org/support/plugin/official-facebook-pixel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/official-facebook-pixel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/official-facebook-pixel/reviews/)

## Tags

 * [CSP](https://wordpress.org/support/topic-tag/csp/)
 * [plugin](https://wordpress.org/support/topic-tag/plugin/)

 * 6 replies
 * 2 participants
 * Last reply from: [Marija](https://wordpress.org/support/users/marijastuntcoders/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/csp-errors/#post-18326860)
 * Status: resolved