projects
/
nmhive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f124dd0
)
nmhive.py: Accept Content-Type headers via CORS
author
W. Trevor King
<wking@tremily.us>
Sun, 21 Sep 2014 13:30:45 +0000
(06:30 -0700)
committer
W. Trevor King
<wking@tremily.us>
Sun, 21 Sep 2014 13:40:12 +0000
(06:40 -0700)
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
patch
|
blob
|
history
diff --git
a/nmhive.py
b/nmhive.py
index 363a1b8912ec840b7c48b380fdd2d363d210c683..23bd4999c81e008770dcacb88bc313edee7fa115 100755
(executable)
--- 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)