From bad85dfa649deb0db5173cec25cffcc7128eae8d Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 21 Sep 2014 06:30:45 -0700 Subject: [PATCH] nmhive.py: Accept Content-Type headers via CORS Using the suggested syntax [1] so I can POST from the bookmarklet. [1]: https://pypi.python.org/pypi/Flask-Cors/1.9.0/#using-json-with-cors --- nmhive.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nmhive.py b/nmhive.py index 363a1b8..23bd499 100755 --- a/nmhive.py +++ b/nmhive.py @@ -10,6 +10,7 @@ import flask_cors app = flask.Flask(__name__) +app.config['CORS_HEADERS'] = 'Content-Type' flask_cors.CORS(app) -- 2.26.2