I have a web application and I'm writing APIs on NodeJS.
I want to test this APIs use mocha, chai and Node-rest-client and don't open browser, but I have a problem: "I don't know How to set cookie (Authorization of header) when I ran server on localhost)
- First, run server on localhost:3000.
- Next, run command api testing (Set cookie to server and run API testcases).