Cloudflare doesn't send response to client on proxied record using Caddy
I am currently using Cloudflare on my domain to hide the IP of my server that uses Caddy as a reverse proxy. When proxying is disabled, everything works fine and I am able to send files to my web server through the API I made. However, when enabled, the last chunk of my request fail to send with a HTTP 502 Bad Gateway (see attached images).
My server is able to process the file and respond to the request, but the client never receive the response (except when I disable Cloudflare proxy for this dns record).
I only have this issue when my client is using Axios or Superagent on NodeJS, Postman is working fine.
I also tried to use Apache and Nginx, which results in a similar issue.
0 Replies