I get a https gateway payment message to confirm the payment, etc. I need to verify that the message was entered from a domain.
I am trying to verify that the referrer belongs to a specific list of domains, but in my req.headers I do not see the referrer | referer:
{ '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 are my headers empty from fields like referer, origin, etc.
This is in the message:
app.post('/payment/notify/', function(req, res){
req.headers
})
source
share