Skip to Content
0
Jan 06, 2023 at 01:36 PM

csrf token validation failed in POST method

269 Views Last edit Jan 09, 2023 at 12:30 AM 3 rev

We are encountering an error which is "csrf token validation failed " when we are trying to send data to s/4 HANA using this code.

image.png

Please see below screenshot for the setup of package.json

image.png


We tried to use create csrf using the codes below:

image.png

image.png

Attachments

image.png (41.3 kB)
image.png (35.0 kB)
image.png (36.6 kB)
image.png (31.6 kB)