node.js - Nodejs express request headers - get the referrer, etc. -
i post form payment gateway https verify payment etc. need verify post infact domain.
im trying verify referrer list of domains in req.headers dont see referrer|referer options:
{ 'x-real-ip': '123.34.45.176', 'x-forwarded-for': '123.34.45.176', host: 'my.foo.com', 'x-nginx-proxy': 'true', connection: 'close', 'user-agent': 'mozilla/4.0 (compatible; msie 5.01; windows nt 5.0)', accept: '*/*', 'content-length': '441', 'content-type': 'application/x-www-form-urlencoded' }
why headers empty of fields such referer, origin etc ?
this inside post:
app.post('/payment/notify/', function(req, res){ req.headers })
not requests have referer header.
if last page browser on secure server (https) not transmit referer you.
also, if user types address address bar don't referer well.
Comments
Post a Comment