Title: CSP is blocking eval script
Last modified: October 8, 2025

---

# CSP is blocking eval script

 *  [wairshad](https://wordpress.org/support/users/wairshad/)
 * (@wairshad)
 * [7 months, 3 weeks ago](https://wordpress.org/support/topic/csp-is-blocking-eval-script/)
 * Dear Support,
 * After installing the plugin, I noticed it is working good on my clients site,
   however, I noticed the following CSP message in the console. Any idea if this
   can be fixed? I am using it on WooCommerce + Litespeed WebServer.
 *     ```wp-block-code
       Content Security Policy of your site blocks the use of 'eval' in JavaScript`The Content Security Policy (CSP) prevents the evaluation of arbitrary strings as JavaScript to make it more difficult for an attacker to inject unathorized code on your site.To solve this issue, avoid using eval(), new Function(), setTimeout([string], ...) and setInterval([string], ...) for evaluating strings.If you absolutely must: you can enable string evaluation by adding unsafe-eval as an allowed source in a script-src directive.⚠️ Allowing string evaluation comes at the risk of inline script injection.1 directiveSource location	Directive	Statusv1?ray=98b899a5cc508393&lang=auto:1	script-src	blocked
       ```
   
 * Thanks.

The topic ‘CSP is blocking eval script’ is closed to new replies.

 * ![](https://ps.w.org/simple-cloudflare-turnstile/assets/icon-128x128.gif?rev=
   2937121)
 * [Simple CAPTCHA Alternative with Cloudflare Turnstile](https://wordpress.org/plugins/simple-cloudflare-turnstile/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-cloudflare-turnstile/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-cloudflare-turnstile/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-cloudflare-turnstile/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-cloudflare-turnstile/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-cloudflare-turnstile/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [wairshad](https://wordpress.org/support/users/wairshad/)
 * Last activity: [7 months, 3 weeks ago](https://wordpress.org/support/topic/csp-is-blocking-eval-script/)
 * Status: not resolved