JavaScript fetch API and Python Flask header issue JavaScript fetch API and Python Flask header issue flask flask

JavaScript fetch API and Python Flask header issue


I am having the same frustration, and you question helped solve my issue, by forcing get_json()

I did notice that the difference between my implementation and yours is:

from flask_cors import CORSCORS(app)

https://flask-cors.readthedocs.io/en/latest/