I have a Flask code with returns my Data to a response object (in order to fetch the data from Javascript).
this is my app.py :
@app.route('/', methods=["POST"])
def donglot():
global app_url
app_url = request.form.get("appUrl")
appData = AppDatafromUrl(app_url)
return jsonify(data=appData)
How to add Content-Disposition : Attachment as header so i can put in app.py but return as jsonify?