I'm using express.js and iI need to know the domain which is originating the call. This is the simple code
app.get(
'/verify_license_key.json',
function( req, res ) {
// do something
How do iI get the domain from the req or the res object?
I mean iI need to know if the apiAPI was called by somesite.comsomesite.example or someothersite.comsomeothersite.example.
I tried doing a console.dir of both req and res but iI got no idea from there, also read the documentation but it gave me no help.