Flask, how to return a success status code for ajax call
Flask, how to return a success status code for ajax call Question: On the server-side, I am just printing out the json-as-dictionary to the console @app.route(‘/’,methods=[‘GET’,’POST’]) @login_required def index(): if request.method == “POST”: print request.json.keys() return “hello world” Now, whenever I make a post request via ajax, the console prints out the dictionary with the …