3 ms·
Interesting. What's the rationale?
by philwelch 7y ago
Interesting. What's the rationale?
- gsempe 7y agoIt’s the separation of concerns best practice extended to domain names. To not have to think to path collisions if the website and the API are in the hands of different teams is a plus. As well, in this case, it’s a lot better to avoid the root domain which is less flexible then a subdomain. For instance, you can’t have a CNAME behind a root domain
- paulddraper 7y agoFlexibility. A CNAME is easier than a reverse proxy. Security. Don't share cookies with your site.
- philwelch 7y agoWhat if sharing cookies with your site is the intended behavior, e.g. for API's that you're calling directly from your frontend?