Closed davayd closed 7 years ago
each phantomjs run is clean, and cookies need to be persisted yourself to a file, then you can run mocha-phantomjs
with a cookies file via --cookies
or -c
flag.
Also see the cookies tests for an example usage of the format.
Hi, when i run GET request
$.get('http://localhost:5000/api/user/login', {userName:'test', password:'test'}, console.log)
to my ASP.NET server from Chrome browser, the server automatically add to request HEADER CookieBUT, When I do the same operation with mocha-phantomjs
i get {} cookie object. How can i get the Authorization Cookie?