{
  "id": "starlette-cors-table",
  "kind": "table",
  "slug": "starlette-cors",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/starlette-cors/",
  "title": "Allow a browser origin with Starlette or FastAPI CORS middleware",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "CORSMiddleware",
      "source": "Starlette",
      "detail": "Adds CORS headers to outgoing responses"
    },
    {
      "name": "allow_origins",
      "source": "Starlette",
      "detail": "List of origins permitted to make cross-origin requests"
    },
    {
      "name": "allow_origin_regex",
      "source": "Starlette",
      "detail": "Regex string to match against origins"
    },
    {
      "name": "origin",
      "source": "Starlette",
      "detail": "Combination of protocol, domain, and port"
    }
  ],
  "related_slugs": [
    "django-csrf",
    "http-status-codes",
    "fastapi-error-handling"
  ],
  "license": "CC-BY-4.0",
  "source_license": "BSD-3-Clause (Starlette); MIT (FastAPI); prose restates cited source lines in own words",
  "as_of": "2026-11-19",
  "status": "deep-draft-20261119",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}