Users get seemingly random 403 errors (Cloudflare)

Since a few weeks ago our users report random 403 errors while browsing our site. Curiously these errors occurred on routes that don’t have an 403 response implemented.
Last week we shipped some client-side HTTP interceptors to send 403 errors and their payload to Sentry to get to the bottom of this.

This is the response payload clients get on several different routes on our service hosted on Render:

<html>
<head><title>403 Forbidden</title></head>
<body>
<center><h1>403 Forbidden</h1></center>
<hr><center>cloudflare</center>
</body>
</html>

We don’t use the Cloudflare-DNS-proxy on our domains so we can’t really explain what is happening.

Any help would be greatly appreciated.

1 Like

Hi Lucas, can you profile us the CloufFlare ray-id for such a request? It would be in the response header and named cf-ray - example curl -I https://render.com | grep cf-ray

John B

Yeah sure.

I have two for you:

cf-ray: 6d277f7728b68e62-PDX, 
cf-ray: 6d2c6f9a0a8505c2-IAD, 

Thank you for your help. Let me know if you need any more info.