Cloudflare DevelopersCD
Cloudflare Developersโ€ข3y agoโ€ข
13 replies
Maxou44

JS challenge, R2 assets and CORS issues

When a user of my website Brickfilms.com pass throught the Cloudflare JS challenge, the website can't be loaded, I got CORS errors on JS files. Without the Cloudflare challenge, I don't have any issues to load the page

My JS files are hosted on a subdomain using Cloudflare R2 : assets.brickfilms.com and the CORS of this bucket are correctly configured.

I don't understand why JS resources can't be loaded from the domain brickfilms.com. I have the impression that Cloudflare adds CORS or policy constraints for the challenge page and that it blocks the loading of the site once the challenge is resolved.

Any ideas ?
image.png
image.png
Was this page helpful?