• Resolved noobieboy

    (@noobieboy)


    Hello team!

    Thank you for this fantastic plugin. I have used this plugin on many websites and am very satisfied with the performance.

    Recently, I added some scripts from Termageddon to one of my website which uses Nitropack. But the cookie banner was not visible once Nitropack caches the page. I observed that the script file from Nitropack CDN was blocked and the console was showing “Access to script has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource”. If I remove the code from Termageddon, the error also disappears.

    Could you please help me to sort out this error? Because of this error, the website is not showing the cookie policy banner anymore.

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Support Nikol @ Nitropack

    (@nitronikol)

    Hello @noobieboy ,

    Thank you for reaching out!

    This is most likely related to the server not having the correct CORS policy. Since static resources including JS are loaded via our CDN which is on a different domain than the site, we would need your hosting to alter the CORS policy for the site so as it can load resources from external domains, in this case – *.nitrocdn.com

    You reach out to your hosting support and ask them to do this modification on your behalf, so the resource can resume being served normally.

    I also suggest submitting a ticket to our Technical Support team so they can check the issue in-depth and assist you further – https://support.nitropack.io/hc/en-us/requests/new?ticket_form_id=360005788534

Viewing 1 replies (of 1 total)
  • The topic ‘Access to script blocked by CORS policy.’ is closed to new replies.