CORSMiddleware is used to enable CORS on APIs. It will automatically add the necessary headers necessary to communicate with CORS enabled clients.
The allowed origin. By default it will use the request origin.
Array of allowed headers.
Array of allowed HTTP methods.
Sets the allowed origin. By default,
Generated using TypeDoc
CORSMiddleware is used to enable CORS on APIs. It will automatically add the necessary headers necessary to communicate with CORS enabled clients.