Vadim
CDCloudflare Developers
•Created by Vadim on 9/25/2024 in #general-help
Rocket Loader with CSP headers breaks require js on Magento
Hello, CF community, we have a Magento site with a Rocket loader feature. After deploying CSP headers we got an error - require is not defined. If we disable the rocket loader the issue is dissapear. I want to mention that we've added CSP header script-src 'self' ajax.cloudflare.com; as mentioned in the CF docs https://developers.cloudflare.com/fundamentals/reference/policies-compliances/content-security-policies/#product-requirements
What can you suggest to resolve the issue? I really appreciate any help you can provide.
2 replies