Home / Report Question

Q. How can you restrict FastAPI CORS policy to specific origins?
  • A. Set CORS-Restrict header
  • B. Add allowed origins in CORSMiddleware
  • C. Use allowed_cors parameter in app
  • D. Set origin_policy in decorator