title: Why my request works with postman but not with vue.js axios?
body: <p>I've made a back using Flask, and a front using vue.js,</p>
  <p>Why I make the request with postman it returns what I want but not with axios ...</p>
  <p>for exemple :</p>
  <pre><code>    this.$axios
        .post('http://127.0.0.1:5000/getUserDataByMail', { mail: 'test@test.com' })
        .then(response =&gt; {
          console.log('this.userData')
          console.log(response.data)
          this.userData = response
          }
        )
  </code></pre>
  <p>Is treated by :</p>
  <pre><code>@app.route('/getUserDataByMail', methods = ['GET', 'POST'])
  def getUserDataByMail():
      args = request.args
      mail = args['mail']
      return jsonify(mail)
      cur = mysql.connection.cursor()
      dataCur = cur.execute('select * from userdata where email like &quot;' + mail + '&quot;')
      if dataCur &gt; 0:
          data = cur.fetchall()
          cur.close()
          return jsonify(data)
      cur.close()
  </code></pre>
  <p>But this result in an error 400 ...</p>
  <blockquote>
  <p>POSThttp://127.0.0.1:5000/getUserDataByMail [HTTP/1.0 400 BAD REQUEST 4ms]
  Uncaught (in promise) Error: Request failed with status code 400</p>
  </blockquote>
  <p>Help me I'm losing my mind ! (:</p>