''h-captcha-response' of undefined, Express

I am working on a small login and always come out on a error. I dont know what can be the reason.

About the Project:

NodeJS Express

Error:

Thhe Error

The Code in the Backed:

router.post('/register', (req, res) => {
  console.log(req.body);
  const token = req.POST_DATA['h-captcha-response']

Post Body from the Post to the Backend

enter image description here

So what I need there comes to the backend but for some reason unknown to me it only outputs an Undefinded.

How can I solve the problem there?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source