Worker 403 error with custom headers, worked fine a few weeks ago

I am using a worker as a proxy to bypass CORS. When using it without custom headers, it doesn't fetch anything and returns the correct response. When used with custom headers (urlToFetch), it used to correctly return the fetched content. But now it returns this instead:
We are sorry !

The page or file you requested is not accessible. Please try after some time.

Reference 18.ae293417.1729453716.138d65bc 


The response headers of the request contain
server: cloudflare


I haven't changed the worker configuration in 6 months. It was working fine all this time, but now it gives this error.
image.png
Was this page helpful?
Worker 403 error with custom headers, worked fine a few weeks ago - Cloudflare Developers