# Can't make post request

**URL:** <https://community.auth0.com/t/cant-make-post-request/57815>\
**Category:** Get Help\
**Tags:** nodejs, react-sdk, node-auth0\
**Created:** [February 13, 2021, 7:55am UTC](https://community.auth0.com/t/cant-make-post-request/57815 "2021-02-13T07:55:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrescg10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrescg10/32/27582_2.png) [@andrescg10](https://community.auth0.com/u/andrescg10)\
**Post date:** [February 13, 2021, 7:55am UTC](https://community.auth0.com/t/cant-make-post-request/57815/1 "2021-02-13T07:55:02Z")

</div>

SDK: auth0-node

Hello I’m setting up the auth with React in the front and Node on back, everything works fine when I try to make a GET to Node sending the token from an axios.get headers and checking it on the back but as soon as I try to make a post request this error appears ‘UnauthorizedError: No authorization token was found’ it only happens if I try to make a post request.

---

<div class="post-metadata">

**Author:** ![andrescg10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrescg10/32/27582_2.png) [@andrescg10](https://community.auth0.com/u/andrescg10)\
**Post date:** [February 13, 2021, 9:21am UTC](https://community.auth0.com/t/cant-make-post-request/57815/2 "2021-02-13T09:21:06Z")

</div>

Here’s also the code snippet on React

```
const res = await axios.post("http://localhost:3010/hello", {
  data: { title: "Test", nombre: "This is a test" },
  headers: {
    Authorization: `Bearer ${token}`,
  },
});

```

};

And here’s the node code (checkJwt works if make a get request but not on post request)

```
app.post('/hello', checkJwt, (req, res) => {
  const {data} = req.body
  console.log(data)
})

```

---

<div class="post-metadata">

**Author:** ![andrescg10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrescg10/32/27582_2.png) [@andrescg10](https://community.auth0.com/u/andrescg10)\
**Post date:** [February 14, 2021, 12:27am UTC](https://community.auth0.com/t/cant-make-post-request/57815/3 "2021-02-14T00:27:46Z")

</div>

Solved, it was an axios problem

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 15, 2021, 9:24am UTC](https://community.auth0.com/t/cant-make-post-request/57815/4 "2021-02-15T09:24:15Z")

</div>

Glad you have figured it out!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 25, 2021, 10:37am UTC](https://community.auth0.com/t/cant-make-post-request/57815/5 "2021-02-25T10:37:12Z")

</div>


