For the following ajax post request for Flask (how can I use data posted from ajax in flask?):
ajax
Flask
$.ajax({ url: \"http://127.0.0.1
You can get the results with a simple:
@app.route('your route', methods=['GET']) def yourMethod(params): response = flask.jsonify({'some': 'data'}) response.headers.add('Access-Control-Allow-Origin', '*') return response