I cant get set-cookie header in login request

You are getting a redirect/302, so the output you are seeing from the node is coming from the next http response - after the redirect is followed. Here is the combination of settings you need to make this work.

More details in this post too.