fastapi-utils icon indicating copy to clipboard operation
fastapi-utils copied to clipboard

[QUESTION] How to enable `CORS` for all the paths using cbv inferring routers

Open xalien10 opened this issue 2 years ago • 0 comments

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?

xalien10 avatar Nov 08 '23 13:11 xalien10