Related to
Cloudflare Tunnel
What is the error number?
405
What is the error message?
HTTP 405 Method not allowed
What is the issue you’re encountering
I can’t reach my api with POST requests
What steps have you taken to resolve the issue?
I made a cloudflare tunnel to my homelab. I use two domains for my application: domain.com for the webpage and api.domain for the api. The webpage and the api run on different server. and I have a third server for the cloudflare tunnel. requests comming through the tunnel go internally directly to the api server, without any proxy or middleware. The api is a quarkus application where I enabled the access log to find the problem in the access log I now saw, that a GET request reaches the api every time I send a post with insomnia over cloudflare. If I send the request directly, everything works fine.
My question now is, why does cloudflare change the POST to a GET, and is there a possibility to change this? Please let me know if you have any hints for me solving the problem.
Thanks