No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    SSR req.body is undefined

    Help
    1
    1
    60
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      thomas560 last edited by

      I have tried to create a post request to server by axios

      this.$axios
      .post(’/set_info’, {
      …
      })
      .then(response => {
      …
      })
      .catch(error => console.log(‘Error’, error.message))

      But I could not to get posted data from the request. Here is my server side:
      app.post(’/set_info’, function (req, res) {
      console.log(req.body)
      res.send(‘OK’)
      })

      Can anyone help me, please ?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post