Node.js code for HTTP POST with X-CSRF-Token
I am currently experimenting with a IoT solution. Instead of using the HCP, with the preconfigured IoT services, I have created an oData service on a HANA system on AWS.
To test the HTTP GET and the HTTP POST, I have used Postman, and it works. The HTTP POST via postman can be achieved by providing the X-CSRF-Token in the header data, which I have fetched first using a HTTP GET.
I also tried to turn off the X-CSRF-Token by changing the GUI parameters of my oData service in SICF by putting parameter ~CHECK_CSRF_TOKEN to 0, but also without success.
Does anyone know how this could be done with node.js?