Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
85
rated 0 times [  90] [ 5]  / answers: 1 / hits: 62779  / 12 Years ago, mon, may 14, 2012, 12:00:00

A way to get HTTP_REFERER , We can use document.referrer in browser side javascript .
But how can we get it in NodeJS ?


More From » node.js

 Answers
165

You can get it by...



req.headers.referer


in...



var http = require('http');
server = http.createServer(function(req, res){
...
}

[#85602] Saturday, May 12, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
christianu

Total Points: 481
Total Questions: 124
Total Answers: 99

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
2 Years ago
christianu questions
;