Enable CORS in Flask app

In this post I will show you how to enable CORS (Cross Origin Resource sharing) so that you can make HTTP requests from a different domain than the one you use for your Flask application written in Python. We will just add a kind of middleware to modify all the responses and add the headers that allow CORS in Flask. ...

November 10, 2020 · 1 min · 193 words · Parzibyte