有没有办法在与前端相同的域上运行无头/解耦CMS?

I am working on a decoupled CMS app, and I wondered if the front-end and back-end have to be on separate domains?

If not, how would you get them on the same domain?

Right now, I'm using WordPress/PHP as my CMS and React for the front-end - so I presume few (if any) hosting services could handle both PHP and React.

But what if I were to use a React front-end with a CMS written in Node/JavaScript?