I’m trying to proxy a cloudflare cname record for an api endpoint that is authenticated, but when I enable the proxy then cloudflare puts up the custom error page and the endpoint becomes unavailable through the cloudflare cname.
I’ve tried creating a custom page rule for the endpoint and disabling every cloudflare feature to try and figure out what is the cause, but nothing works except for disabling proxying.
What can I do to proxy traffic through cloudflare for an authenticated api and disable cloudflare’s custom error pages? Is there instead some way to tell cloudflare what is and is not an error if I can’t turn the feature off?
For now I’ve turned the proxy off and I’m depending on aws api gateway’s WAF, but I’d rather use cloudflare’s security features for my entire site for consistency.