3 ms·
Doesn't moving the API from the subdomain to the /api path on the same subdomain as the website solve the problem?
by hugobauer 4y ago
Doesn't moving the API from the subdomain to the /api path on the same subdomain as the website solve the problem?
- lbriner 4y agoYes but 1) You would need a proxy to redirect the /api path to another application and 2) The API could easily be hosted separately so you would send your request via the main origin server just for it to actually go somewhere else. 3) You are not necessarily talking about a private API for an app but a shared API for multiple domains in which case, this is not a solution.