fastapi-utils
fastapi-utils copied to clipboard
[QUESTION] How to enable `CORS` for all the paths using cbv inferring routers
I was trying to use CORSMiddleware according to provided instructions.
But it seems like the cbv is not allowing preflight options request by responding 405 method not allowed as I didn't add options method explicitly.
How can I use cors middleware with cbv to allow cors for any request?