I have two sites that go through Cloudflare: site1.domain.com, a React-based app hosted in Cloudflare Pages and site2.domain.com, which serves as an API for the React app and it’s hosted elsewhere (AWS).
Everything works fine, but I would like to move site2.domain.com to site1.domain.com/api to avoid having CORS issues. Is this a thing that can be accomplished with Cloudflare?