Glossary: JavaScript in the Browser
Proxy
A server that forwards requests. Vite's proxy sends requests starting with /api on to the practice server on port 8080, so the browser sees only one origin and CORS doesn't block it.
Glossary: JavaScript in the Browser
A server that forwards requests. Vite's proxy sends requests starting with /api on to the practice server on port 8080, so the browser sees only one origin and CORS doesn't block it.