Routing downloads from R2 gets http2 err

I have a webpage to allow downloads for users and do not want to show the download url that is hosted on the r2 bucket.

I have written front end code to fetch a server file that will authenticate a user given basic params passed and then fetch and send the download to the client. Everything works in local where I do not route through cloudflare.

When I test on test-production server that routes through cloudflare i get errors
net::ERR_HTTP2_PROTOCOL_ERROR 200


I have all the needed security https on the domain name and use cloudflare proxy. I believe there is some configuration missing but not sure what on the cloudflare side.

I posted some of the header response data which shows the needed content length with a test.txt file that literally just says this is a test

I look forward to what you guys come up with.
Screenshot_2023-07-23_at_9.22.56_AM.png
Was this page helpful?