Deployed React to Cloudflare Pages, API calls always get a 405

I have deployed a React app to Cloudflare Pages, and API calls always get a 405 method not allowed and the calls are not reaching the server. Is there something missing in my config?
Was this page helpful?