title: "Javascript not available on browser" when Flask server receives an HTML Response from API
body: <p>I spun up a local Flask server in order to create a Web UI for managing some of my network devices. When my networking device replies to my Flask server to ask for sign-in credentials, I receive this response (edited for security reasons):</p>
  
  <p><strong>Web-Browser: Google Chrome</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
  &lt;head&gt;
  &lt;title&gt;
  &lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body class="vega signin-body"&gt;
    &lt;div id="root"&gt;&lt;/div&gt;
  
  &lt;noscript&gt;
    &lt;div class="signin-page"&gt;
      &lt;div class="panels"&gt;
        &lt;div class="panel signin"&gt;
          &lt;h2 class="important"&gt;Error: JavaScript not available&lt;/h2&gt;
          &lt;div class="panel-content corner-bottom"&gt;
            &lt;p&gt;
              This web interface requires a modern browser with JavaScript
              enabled.
            &lt;/p&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/noscript&gt;
    &lt;script src="/static/vega-app-70224f965ab5fa468768.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/static/vega-vendor.bundle-70224f965ab5fa468768.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>My Code: I know that all of my Utils functions work as intended, but my main issue is receiving the html/javascript response</p>
  
  <p><strong>Server.py:</strong></p>
  
  <pre><code>from flask import Flask, request, jsonify
  from utils import ngrokWebhook, indexHTML, book_room, book_meeting
  
  
  app = Flask(__name__)
  
  @app.route('/')
  def index():
          return indexHTML()
  
  @app.route('/book', methods=["POST","GET"])
  def book():
      meeting_title= request.form['meeting_title']
      time = request.form['time']
      ip_address = request.form['ip_address']
      test = book_room(ip_address, meeting_title, "2019-12-09T20:45:00", "2019-12-09T21:00:00")
      print(test)
  
      return test
  
  
  
  if __name__ == "__main__":
      app.run(host = '0.0.0.0', port=80, use_reloader=True, debug=True)
  </code></pre>
  
  <p><strong>Utils.py:</strong></p>
  
  <pre><code>def getStatus(url, payload,  query):
      response = requests.request("POST", url, data=payload, params=query, verify = False)
  
      return response.text
  
  def book_room(url, meeting_title, start_time, end_time):
      response = getStatus(
          url,
          book_meeting(meeting_title,start_time, end_time, ""),
          "bookingsputxml")
  
      return response
  </code></pre>
  
  <p>How can I respond to the Authentication HTML response that I receive?</p>