{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/12"},{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/7"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/15"},{"label":"Internet","url":"https://skillfed.io/packages/category/internet/4"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/5"},{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/4"},{"label":"HTTP Servers","url":"https://skillfed.io/packages/category/internet-www-http-http-servers"}],"enrichment":{"capability":"Configures CORS settings for FastAPI applications via environment variables, with optional health-check endpoint.","skillfed_tags":["cors","environment-config"],"use_cases":["Configure CORS for a FastAPI app using only environment variables, avoiding hardcoded origin lists in code.","Set different CORS policies across development, staging, and production by changing .env files without code changes.","Add a health-check endpoint that reports the active CORS configuration for debugging cross-origin request issues.","Quickly scaffold a FastAPI app with sensible CORS defaults (localhost and localhost:3000 allowed) for local development."],"what_it_does":"fastapi-cors is a thin wrapper around FastAPI's built-in CORS middleware that reads configuration from environment variables instead of requiring programmatic setup. It lets you define allowed origins, methods, headers, and credential support through a .env file, then applies those settings with a single function call. The package includes an optional health-check route that displays the active CORS environment variables.\n\nThe package is designed for developers who want to manage CORS policy through environment configuration rather than code. It depends on environs to parse and cast environment variables, and fastapi as its target framework. Since the package is abandoned (no updates since July 2023), it receives no maintenance or security updates, making it suitable only for stable, low-risk deployments or as a reference implementation rather than a production dependency.","worth_installing":"No. The package is abandoned and receives no maintenance. For new projects, use FastAPI's built-in CORSMiddleware directly with environment variable parsing via environs or python-dotenv\u2014you gain the same functionality with active upstream support. For existing projects already using fastapi-cors, migration is straightforward since the underlying FastAPI CORS API is stable."},"id":"fastapi-cors","links":{"html":"https://skillfed.io/packages/fastapi-cors","md":"https://skillfed.io/packages/fastapi-cors.md","pypi":"https://pypi.org/project/fastapi-cors/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2023-07-12","license_spdx":null,"license_treatment":"permissive","name":"fastapi-cors","python_support":"supports_current","summary":"Simple env support of CORS settings for Fastapi applications"},"popularity":{"monthly_downloads":240558,"position":8904,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.6"}
