support cross-domain requests on API

This commit is contained in:
Aaron Blankstein
2017-06-22 15:36:47 -04:00
parent 903ab50086
commit 5a8d93e125

View File

@@ -117,6 +117,7 @@ def search_people():
return jsonify(data), 200
@app.route('/<path:path>', methods=['GET'])
@crossdomain(origin='*')
def catch_all_get(path):
API_URL = BASE_API_URL + '/' + path
params = dict(request.args)