mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-23 19:31:00 +08:00
support cross-domain requests on API
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user