Glossary: Building APIs with FastAPI
CORS
Also written: cross-origin resource sharing, CORSMiddleware
CORS (cross-origin resource sharing) is how a server tells browsers that a web page from another origin may read its responses. FastAPI adds the `access-control-allow-origin` headers through `CORSMiddleware`.