DEV Community

Discussion on: Different ways to connect react frontend and node backend

Collapse
 
benadavid profile image
David Benalal

In option 2, even if it's two different servers, you can point one to server1.com and the other to server1.com/api which solves the same CORS problem you mentionned in option 1, doesn't it?

Collapse
 
itsrakesh profile image
Rakesh Potnuru

You can have a subdomain pointing to different server but you can't have same domain for different servers.