4 ms·
Try doing this with Heroku and you’ll decide that you want CORS after a few hours.
by r_singh 5y ago
Try doing this with Heroku and you’ll decide that you want CORS after a few hours.
- taftster 5y agoWhy?
- selfup 5y agoIf you don't have an edge proxy (additional compute) you then accept all requests, or accept that a simple header is telling the truth.
- frenchman99 5y agoYou can have 2 Heroku apps, one for frontend with little resources since it's all static and one for API with more resources. Then create a custom Nginx config on the static app to redirect API requests and it should work fine.
- r_singh 5y agoDoesn’t that create a single point of failure for both the services?
- londons_explore 5y agoFor most services, if the static server is down, the service is down as far as the user is concerned. Therefore the added dependency may not reduce end-user-percieved reliability.
- r_singh 5y agoI reckon that most software services in the world are B2B rather than B2C (guessing from the fact that most users spend most of their time on a handful of services).