You don't need that CORS request
You don&#x27;t even need an SPA. Having the backend + frontend share the same state makes development so much faster and easier it&#x27;s shockingly refreshing. When building a SaaS project last year I decided to just ditch React&#x2F;Angular&#x2F;Vue and did everything server-side like it was 2005. I was extremely pleased at the result -- everything feels snappy, secure, and native for the browser. I was shocked at how much time and headache I saved: not having to design&#x2F;deploy an API and all the trimmings (ACLs, CORS, JWTs etc.), not having to spend X hours a day wrestling with Webpack&#x2F;hot reloading&#x2F;npm&#x2F;tree-shaking&#x2F;state management, having direct access to backend secrets&#x2F;state&#x2F;APIs and just spitting out HTML, it&#x27;s just so....lovely. It simplifies performance tuning as well, the only thing I need to optimize is the server, which is easy to do because I have 100% control and visibility, compared to debugging&#x2F;optimizing JavaScript for a million different clients.