CORS
CORS (Cross-Origin Resource Sharing) is a browser security mechanism that controls which web origins can make requests to your API. By default, browsers block cross-origin requests (e.g., a frontend at app.example.com calling an API at api.example.com). CORS headers configure which origins, HTTP methods, and headers are allowed. In AI applications with separate frontend and backend services, proper CORS configuration is essential for the frontend to communicate with the API server, WebSocket endpoints, and SSE streams. Misconfigured CORS is a common source of deployment issues.
Related Terms
API Gateway
InfrastructureAn API gateway is a reverse proxy that sits between clients and backend services, providing a single entry point for API requests.
Content Security Policy
InfrastructureContent Security Policy (CSP) is a browser security standard that defines which resources (scripts, styles, images, connections) a web page is allowed to load.
FastAPI
Frameworks & ToolsFastAPI is a modern, high-performance Python web framework for building APIs, built on top of Starlette (for async HTTP) and Pydantic (for data validation).
Ready to build your first production AI agent?
Open-source tools, battle-tested patterns, zero boilerplate. Configure your stack and ship in minutes — not months.