Okay, I've found the answer to my question.
nginScript supports access to all of NGINX's variables. This also provides
access to the cookie like so:
myfunction(req, res) {
var cookie = req.variables.http_cookie;
}
Kind regards
Andreas
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273509,273626#msg-273626