How to connect to self hosted REST API through a cloudflare proxy?

Sorry if this is a weird question but I made a REST API which I am running locally (and I want to keep it that way) and all works fine if I directly use my public ip address, however, once I try making for example a GET request out of my proxied domain, it ceases to work.

Any way to make it work?
Was this page helpful?