{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/13"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/2"}],"enrichment":{"capability":"Sanic-CORS is a Sanic extension that adds Cross-Origin Resource Sharing (CORS) support to Sanic web applications, enabling cross-origin AJAX requests with configurable per-route or global policies.","skillfed_tags":["cors","abandoned-project","sanic-framework"],"use_cases":["Enable CORS globally on a Sanic API to allow browser-based clients from any origin to make cross-origin requests.","Configure CORS selectively for specific API routes using the @cross_origin decorator to restrict which origins can access sensitive endpoints.","Set up resource-level CORS policies by mapping URL patterns to specific allowed origins, methods, and headers in the resources parameter.","Automatically handle CORS preflight OPTIONS requests without manually implementing OPTIONS handlers on each route.","Integrate CORS support into a Sanic application managed by Sanic-Ext using the plugin system."],"what_it_does":"Sanic-CORS is a Sanic web framework extension that handles Cross-Origin Resource Sharing (CORS) headers and preflight requests, allowing your Sanic application to safely serve cross-origin AJAX requests. It is based on flask-cors and provides both a global initialization approach and per-route decorator patterns for fine-grained control over which origins, methods, and headers are allowed.\n\nThe extension operates with a permissive default philosophy: when enabled globally, it allows CORS for all origins and methods on all routes unless you explicitly configure restrictions. It includes an automatic_options feature to handle OPTIONS preflight responses without manual route configuration. The package depends on sanic and packaging, and supports Python 3.7 through 3.10. However, the project has been abandoned since early 2023, with the last release in October 2022, and carries two known security vulnerabilities.","worth_installing":"No. While Sanic-CORS provides straightforward CORS support with low install friction and permissive licensing, the project is abandoned (last commit January 2023) and carries two known security vulnerabilities. For new projects, consider alternatives or implement CORS handling directly. For existing projects already using it, evaluate whether upgrading to a maintained solution is feasible."},"id":"sanic-cors","links":{"html":"https://skillfed.io/packages/sanic-cors","md":"https://skillfed.io/packages/sanic-cors.md","pypi":"https://pypi.org/project/sanic-cors/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-10-07","license_spdx":null,"license_treatment":"permissive","name":"Sanic-Cors","python_support":"unspecified","summary":"A Sanic extension adding a decorator for CORS support. Based on flask-cors by Cory Dolphin."},"popularity":{"monthly_downloads":311128,"position":7740,"tier":"top_15000"},"security":{"n_vulnerabilities":2},"version":"2.2.0"}
