title: Flask with ajax query not displaying response
body: <p>I am taking in bunch of inputs from the user in html which I am then passing on to ajax query to get the response. </p>
  
  <pre><code>           $.ajax({
                url:"http://0.0.0.0:8080/getReport",
                type:"GET",
                data:JSON.stringify(out),
                dataType:"json",
                contentType:"application/json"
             })
  </code></pre>
  
  <p>Here is the Flask code that serves the above request. </p>
  
  <pre><code>@app.route('/getReport', methods=['GET'])
  def report():
      return Response('this is a sample response')
  </code></pre>
  
  <p>The above method is returning the response which I can catch in <code>complete</code> argument of ajax but I don't understand as to why it is not displaying Response? (which will be just the text on entire page.)</p>