--- id: quart-cors version: "0.8.0" license: MIT license_treatment: permissive maintenance: dormant --- # quart-cors — A Quart extension to provide Cross Origin Resource Sharing, access control, support License: permissive · Maintenance: dormant · Downloads: 699.0K/mo ## What it is and what it does Quart-CORS is an extension that handles Cross-Origin Resource Sharing (CORS) for Quart async web applications. It solves the problem of browser Same-Origin Policy restrictions by adding the necessary access-control headers that tell browsers which cross-origin requests are permitted. The extension works by intercepting HTTP requests and WebSocket connections, adding headers that specify allowed origins, methods, credentials, and other CORS parameters. You can apply CORS globally to an entire application or blueprint, or selectively to individual routes and WebSocket handlers using decorators. Configuration can be set per-route or via application settings, with support for specific origins, wildcards, regex patterns, and credential sharing rules. The package handles both simple GET requests (which return CORS headers in the response) and complex requests (which require preflight OPTIONS requests). Use it for: - Enable a frontend hosted on one domain to make API calls to a Quart backend on a different domain. - Allow browser-based clients to access WebSocket endpoints from specific approved origins. - Restrict cross-origin requests to a whitelist of domains using regex patterns for subdomains. - Configure different CORS policies for different API routes (e.g., public endpoints vs. authenticated endpoints). - Exempt specific WebSocket handlers from CORS checks using the cors_exempt decorator. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Quart-CORS adds Cross-Origin Resource Sharing (CORS) support to Quart applications, enabling controlled cross-origin requests in browsers by managing access-control headers for HTTP routes and WebSockets. Yes, if you are building a Quart application that needs CORS support and can tolerate dormant maintenance. The package is straightforward to install and use, carries no security vulnerabilities, and has permissive licensing. However, the 595-day gap since the last release and Alpha status mean you should verify compatibility with your Quart version and be prepared to maintain a fork if critical issues arise. ## Install pip install quart-cors uv add quart-cors poetry add quart-cors ## Installing quart-cors Before you install: Installation is straightforward with low friction—a pure-Python wheel with only two runtime dependencies (quart and typing_extensions). The package is dormant (595 days since last release) but carries an Alpha development status; stability is not guaranteed and maintenance is inactive. License in practice: MIT license is permissive and places no restrictions on use, modification, or distribution in commercial or private projects. Quickstart: pip install quart-cors from quart_cors import cors from quart import Quart app = Quart(__name__) app = cors(app, allow_origin="https://example.com") Requires Quart application already set up; CORS applies only to browser-initiated requests, not non-browser clients. Verify before relying: - Current compatibility with latest Quart versions beyond what the fact sheet indicates. - Whether dormant status (595 days since release) reflects active maintenance or abandonment. - Real-world performance and security implications of the preflight request handling. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: dormant - Downloads: 699.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags CORS support for Quart, cross-origin resource sharing, browser access control headers, Quart CORS middleware, cross-origin HTTP requests, CORS preflight handling, origin policy control, cors, async-web, access-control [View on SkillFed](https://skillfed.io/packages/quart-cors) · [View on PyPI](https://pypi.org/project/quart-cors/)