{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http"}],"enrichment":{"capability":"Adds Cross-Origin Resource Sharing (CORS) support to aiohttp applications, enabling controlled cross-origin HTTP requests from browsers by configuring which origins can access specific routes and what credentials and headers are allowed.","skillfed_tags":["async-http","browser-security","middleware"],"use_cases":["Enable a single-page application served from a different domain to make API calls to your aiohttp server.","Allow mobile apps or desktop clients to access your async HTTP API without browser same-origin restrictions.","Configure different CORS policies for different routes\u2014strict for sensitive endpoints, permissive for public APIs.","Handle preflight caching to reduce browser OPTIONS requests and improve client-side performance.","Expose custom response headers to browser clients while controlling which request headers are accepted."],"what_it_does":"aiohttp_cors is a middleware library that implements the CORS standard for aiohttp, an async HTTP server framework. It solves the problem of allowing web browsers to make cross-origin requests to your server by handling the browser's same-origin policy restrictions through proper HTTP headers and preflight request handling. The library lets you configure which origins can access specific routes, whether credentials are allowed, which headers clients can send, and which headers the server exposes back to clients.\n\nYou configure CORS per route by wrapping resources and routes through the library's API, specifying allowed origins and their associated options. The package handles both simple requests (which include the Origin header) and preflight requests (OPTIONS method queries that browsers send before complex requests). It supports wildcard origins for permissive configurations and per-origin customization for fine-grained control.","worth_installing":"Yes, if you are building an aiohttp application that needs to serve cross-origin requests from browsers. The package has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. The Alpha status reflects the library's maturity rather than instability\u2014it has been in use since 2015. Install it when you need CORS support; skip it if your API is same-origin only or uses alternative cross-origin strategies."},"id":"aiohttp-cors","links":{"html":"https://skillfed.io/packages/aiohttp-cors","md":"https://skillfed.io/packages/aiohttp-cors.md","pypi":"https://pypi.org/project/aiohttp-cors/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-03-31","license_spdx":null,"license_treatment":"permissive","name":"aiohttp-cors","python_support":"supports_current","summary":"CORS support for aiohttp"},"popularity":{"monthly_downloads":19173377,"position":1072,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.8.1"}
