Contents

Flask-Cors 4.0.0

0

A Flask extension adding a decorator for CORS support

A Flask extension adding a decorator for CORS support

Stars: 859, Watchers: 859, Forks: 137, Open Issues: 54

The corydolphin/flask-cors repo was created 10 years ago and the last code push was 1 weeks ago.
The project is popular with 859 github stars!

How to Install flask-cors

You can install flask-cors using pip

pip install flask-cors

or add it to a project with poetry

poetry add flask-cors

Package Details

Author
Cory Dolphin
License
MIT
Homepage
https://github.com/corydolphin/flask-cors
PyPi:
https://pypi.org/project/Flask-Cors/
GitHub Repo:
https://github.com/corydolphin/flask-cors

Classifiers

  • Internet/WWW/HTTP/Dynamic Content
  • Software Development/Libraries/Python Modules
No  flask-cors  pypi packages just yet.

Errors

A list of common flask-cors errors.

Code Examples

Here are some flask-cors code examples and snippets.

GitHub Issues

The flask-cors package has 54 open issues on GitHub

  • it don’t work
  • Fix typo
  • Use allowed methods from view function
  • cors error with application/json and without json
  • Getting CORS preflight error even with flask cors initialized
  • Access to XMLHttpRequest at 'http://…' from origin 'http://localhost:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.
  • Is it possible to get Allowed methods from Flask?

See more issues on GitHub

Related Packages & Articles

Flask 3.0.3

A simple framework for building complex web applications.