cors#
- class litestar.middleware.cors.CORSMiddleware#
Bases:
AbstractMiddleware
CORS Middleware.
- __init__(app: ASGIApp, config: CORSConfig) None #
Middleware that adds CORS validation to the application.
- Parameters:
app¶ – The
next
ASGI app to call.config¶ – An instance of
CORSConfig