I've recently been working on a development project involving Vue3, Vite, and TypeScript. The front-end and back-end are separate, and when the front-end requests the back-end, the browser debug information reports a cross-domain error. It's generally believed that cross-domain is a back-end setting, but the back-end code has never been adjusted. After some searching, I found that setting a proxy in vite.config.ts is the simplest solution.