Title: CORS problem
Last modified: October 15, 2024

---

# CORS problem

 *  Resolved [silent2000](https://wordpress.org/support/users/silent2000/)
 * (@silent2000)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cors-problem-5/)
 * Hi. Your plugin is very good optimize our site score, but after 1 week we noticed,
   that all js scripts broken now, and it’s related to CORS problem. Before we start
   use your plugin, we have some custom CSP rules (see first screenshot please).
   And after activate your plugin, it’s many error with content policy again now,
   How we can fix this, maybe add some rules?
 * [https://paste.pics/S5XCM](https://paste.pics/S5XCM)
   [https://paste.pics/S5XD9](https://paste.pics/S5XD9)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcors-problem-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Nik](https://wordpress.org/support/users/nikitaanisimov/)
 * (@nikitaanisimov)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cors-problem-5/#post-18076669)
 * Hi there,
 * Thank you for reaching out, and I’m sorry to hear you’re experiencing issues 
   with our plugin.
 * CORS errors are generally expected behaviour, as Booster attempts to load scripts
   via a worker in the background to reduce load times. In cases where the CORS 
   configuration blocks the worker, the resources are still loaded, but a CORS error
   is logged in the console.
 * Typically, this shouldn’t cause any UI or scripting issues, but you mentioned
   you’re facing JS problems on the front-end. In such case, you can try the following
   troubleshooting steps:
    1. You can locate the conflicting JS files / scripts and exclude them from 10Web
       Booster using [this guide](https://help.10web.io/hc/en-us/articles/12020189458706-How-to-locate-and-exclude-JS-files-in-the-10Web-Website-Booster).
    2. You can exclude the plugin responsible for the section. For example, if the 
       gallery of the website is not loading, excluding the gallery plugin should solve
       the issue. Please, check the** Fixing issues with plugins/themes/services **
       section of [this guide](https://help.10web.io/hc/en-us/articles/12019677771154-How-to-troubleshoot-and-resolve-issues-caused-by-the-10Web-Booster).
    3. You can simply disable the **JavaScript Delay** option from the Website Booster
       > Settings section. You can find more information about the Settings of 10Web
       Booster[ in this guide](https://help.10web.io/hc/en-us/articles/11980896376978-Intro-to-the-10Web-Booster-s-advanced-settings).
       
 * Before checking the results, please, make sure to clear the website cache from
   the Settings section and from Cloudflare CDN section if you have it enabled.
 * Please keep us posted,
 * Cheers,
 * Nik from 10Web.io
 *  Thread Starter [silent2000](https://wordpress.org/support/users/silent2000/)
 * (@silent2000)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cors-problem-5/#post-18076700)
 * Hi. Thank you for detail response. One more question – is it possible to add 
   worker in our CSP setup?
   Like here [https://paste.pics/S6AYC](https://paste.pics/S6AYC)
 *  Plugin Support [Mane Grigoryan](https://wordpress.org/support/users/manegr/)
 * (@manegr)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/cors-problem-5/#post-18088486)
 * Dear [@silent2000](https://wordpress.org/support/users/silent2000/) ,
 * Thank you for your question! It seems there might be a little confusion regarding
   the setup. We don’t typically implement a CSP (Content Security Policy) setup
   directly on WordPress websites at 10Web. This would generally be managed by the
   hosting provider or through specific security plugins.
 * I would recommend reaching out to your hosting provider for further clarification
   on how to manage or add workers within a CSP configuration, as this falls under
   their control.
 * Let me know if you need any further assistance!
   Regards, Mane

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

The topic ‘CORS problem’ is closed to new replies.

 * ![](https://ps.w.org/tenweb-speed-optimizer/assets/icon-256x256.png?rev=2753401)
 * [10Web Booster - Website speed optimization, Cache & Page Speed optimizer](https://wordpress.org/plugins/tenweb-speed-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tenweb-speed-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tenweb-speed-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/tenweb-speed-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tenweb-speed-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tenweb-speed-optimizer/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Mane Grigoryan](https://wordpress.org/support/users/manegr/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/cors-problem-5/#post-18088486)
 * Status: resolved