I\'m using express.js and i need to know the domain which is originating the call. This is the simple code
app.get( \'/verify_license_key.json\', fun
Instead of:
var host = req.get('host'); var origin = req.get('origin');
you can also use:
var host = req.headers.host; var origin = req.headers.origin;