News for hackers. Stuff that matters.
Re:You don't need that CORS request by r_singh on Monday January 03, 2022 @12:59AM (#29777819)
Try doing this with Heroku and you’ll decide that you want CORS after a few hours.
Re:You don't need that CORS request by frenchman99 on Monday January 03, 2022 @02:16AM (#29778209)
You 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.
Re:You don't need that CORS request by r_singh on Monday January 03, 2022 @02:29AM (#29778271)
Doesn’t that create a single point of failure for both the services?
Re:You don't need that CORS request by londons_explore on Monday January 03, 2022 @03:47AM (#29778662)
For 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.

Re:You don't need that CORS request by r_singh on Monday January 03, 2022 @05:57AM (#29779490)
I 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).
Re:You don't need that CORS request by taftster on Monday January 03, 2022 @01:16AM (#29777895)
Why?
Re:You don't need that CORS request by selfup on Monday January 03, 2022 @01:24AM (#29777938)
If you don't have an edge proxy (additional compute) you then accept all requests, or accept that a simple header is telling the truth.