问题
A way to get HTTP_REFERER
, We can use document.referrer
in browser side javascript .
But how can we get it in NodeJS ?
回答1:
You can get it by...
req.headers.referer
in...
var http = require('http');
server = http.createServer(function(req, res){
...
}
来源:https://stackoverflow.com/questions/10579994/how-to-get-http-referer-with-nodejs