Skip to content

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.

Where the book teaches it

Related terms

CORS (cross-origin resource sharing)ViteOrigin