My website is made on php. It uses an api made on api for a task. I want to use python api. When I send GET request to Flask using javascript, ajax wont wait for responce (or maybe its not getting response from flask but Flask log says 200 ok.). Following is js code on website.
linhaenviar.forEach(function(value, index) {
setTimeout(
function() {
$.ajax({
url: 'http://127.0.0.1:5000/check?lista=' + value,
type: 'GET',
async: true,
success: function(resultado)
And This is my Flask Code
from flask import Flask, render_template, jsonify, request
app= Flask(__name__)
@app.route("/check")
def check():
result= request.args.get("lista")
print(result)
return render_template(result)
app.run(debug=True)
I got get request in Flask but didnt got responce on website.