HTTP Method is being changed even when bypassing cache

I am using Cloudflare as a reverse proxy for a suite of restful API endpoints. All of my GET endpoints are working flawlessly, but all of my other endpoints (POST, PUT etc) are being changed to GET, and my API is throwing a 405 method not allowed.

How do I configure Cloudflare to keep the HTTP method intact when calling an API? I’ve added a page rule to bypass the cache, but the method is still coming across as a GET.

Any help is appreciated –
Thanks!

Found the solution to the problem. It was the HTTPS redirect. Everything is working great! You guys rule!!!

1 Like

This topic was automatically closed after 31 days. New replies are no longer allowed.