From: W. Trevor King Date: Sun, 21 Sep 2014 13:30:45 +0000 (-0700) Subject: nmhive.py: Accept Content-Type headers via CORS X-Git-Tag: v0.1.0~22 X-Git-Url: http://git.tremily.us/?p=nmhive.git;a=commitdiff_plain;h=bad85dfa649deb0db5173cec25cffcc7128eae8d 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 --- 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)