HTTP Method is being changed even when bypassing cache

pagerules
caching

#1

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!


#2

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