$npx skillfedfor your agent

flask-cors

A Flask extension simplifying CORS support

Worth itPyPI Python ModulesReleased Jun 202660.4M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — flask_cors-6.0.5-py3-none-any.whl
v6.0.5 · released 2026-06-08 · Python <4.0,>=3.9 · 3 runtime deps: flask, Werkzeug, typing_extensions

Yes. Flask-CORS is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a common Flask problem with a straightforward API. The MIT license is permissive. Install it if you need CORS support in a Flask application.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9 or later; Flask must be installed and running.
  • Low friction: pure Python wheel with only three runtime dependencies (flask, Werkzeug, typing_extensions).
  • Actively maintained with a recent release 67 days ago and ongoing repository activity.

License · maintenance · safety

MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects without significant legal constraints.

last release 2026-06-08 (67 days) · last repo commit 2026-06-09 · 932 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 60,435,146 downloads/mo, #504 on PyPI

Verify before relying

pip install flask-cors

from flask import Flask
from flask_cors import CORS

app = Flask(__name__)
CORS(app)

@app.route('/')
def hello():
    return 'Hello, cross-origin-world!'
  • Whether credential-based CORS requests (cookies across domains) require additional CSRF protection beyond what the package provides by default.
  • Performance characteristics when handling high volumes of cross-origin requests or complex per-resource CORS configurations.
Same gist for agents: .md · .json

What it is and what it does

Flask-CORS is a Flask extension that automatically handles CORS (Cross-Origin Resource Sharing) headers, allowing your Flask application to safely serve requests from different domains. By default, it enables CORS for all routes and origins with a single initialization call, though you can also configure it at the resource level or on individual routes using a decorator.

The package operates on a philosophy of simplicity: when you enable CORS, you typically want it enabled broadly rather than managing individual headers and methods per route. It depends on Flask, Werkzeug, and typing_extensions, all of which are standard in Flask ecosystems. The package explicitly disables cross-domain cookie submission by default for security reasons, and the documentation recommends adding CSRF protection if you need to enable credential-based requests.

Use it for

  • Enable CORS globally on a Flask API so frontend applications hosted on different domains can make AJAX requests to it.
  • Configure CORS selectively for specific API routes or path patterns using the resources parameter.
  • Decorate individual Flask routes with @cross_origin() to enable CORS on a per-endpoint basis without modifying the app initialization.
  • Debug CORS issues by enabling logging on the flask_cors logger to understand which headers and origins are being processed.
  • Secure cross-origin requests by relying on the default credential-disabling behavior while adding CSRF protection when needed.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Flask-CORS is actively maintained, has no known vulnerabilities, installs with minimal friction, and solves a common Flask problem with a straightforward API. The MIT license is permissive. Install it if you need CORS support in a Flask application.

Install

flask-cors on PyPI

Before you install

Low friction: pure Python wheel with only three runtime dependencies (flask, Werkzeug, typing_extensions). Actively maintained with a recent release 67 days ago and ongoing repository activity.

Requires Python 3.9 or later; Flask must be installed and running.

License in practice

MIT license is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects without significant legal constraints.

Quickstart

pip install flask-cors

from flask import Flask
from flask_cors import CORS

app = Flask(__name__)
CORS(app)

@app.route('/')
def hello():
    return 'Hello, cross-origin-world!'

Verify before relying

  • Whether credential-based CORS requests (cookies across domains) require additional CSRF protection beyond what the package provides by default.
  • Performance characteristics when handling high volumes of cross-origin requests or complex per-resource CORS configurations.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
flaskWerkzeugtyping_extensions
MaintenanceActively maintained 67 days since the last release
Last repo commit
First released
Downloads60,435,146 / month, #504 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules

Evidence: flask_cors-6.0.5-py3-none-any.whl

Tags

Capabilities
flask cors headerscross-origin requests flaskcors middleware pythonenable cors flask appcross-origin ajax supportcors decorator flaskflask cross-domain requests
Topics
web-frameworkhttp-headerssecurity-headers
PyPI keywords
python

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “flask cors headers”

  • flask-corsFlask-CORS handles Cross-Origin Resource Sharing (CORS) headers in…
  • cherrypy-corsAdds Cross-Origin Resource Sharing (CORS) support to CherryPy…
  • quart-corsQuart-CORS adds Cross-Origin Resource Sharing (CORS) support to Quart…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also cherrypy-cors · invenio-rest · Sanic-Cors · django-cors-headers · quart-cors · aiohttp-cors · fastapi-cors · aiohttp-middlewares · Flask-JSON · flask-talisman