I have a node.js server that handles some stuff, it sits on port :9000, I built an authentication middleware to restrict some routes.
I am not able to get the cookie though, so I suspect it is because the req is coming from another place :3000 for example.
I am not trying to get the cookie express sets, I am trying to get a client side PHP cookie from the req
// using var req = http.IncomingMessage.prototype;
req.authenticated = function(callback) {
console.log(this.headers.cookie)
}
So the question is how can I setup so that whenever :3000 makes a request to my node.js server :9000 the cookie is sent with the headers?