Pages to serve JS and CSS files without CORS

Hi guys! I want to know if it’s possible to serve static files using Pages without CORS limitations.

Now I see the only option to modify CORS headers is to use Workers. But is too expensive with 4M req/day. Is more convenient for us to maintain the current server and Cloudflare caching all files, but we want to take advantage of Github integration to deploy files without errors on Cloudflare.

Also, this is valid in the context of terms and conditions?

Thanks.

Github Pages adds CORS to all files. CORS headers should really be set on your origin/server. A CF Worker adding CORS is just a “patch” for legacy/3rd party/closed source web APIs/apps/frameworks.