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.
Please see below screenshot for the setup of package.json
We tried to use create csrf using the codes below: