How can I create a node via ajax call?
You can use Postman, a Google Chrome browser app that allows you to POST, GET, PATCH, and DELETE to any site (for testing purposes), to generate the code for you:



After completing the 3 steps shown in the picture, you need to perform 1 more step:


Then paste the code into your custom module.


PS: I believe you can delete the postman-token line in the headers.