node js express get origin url path code example
Example: express get request origin
app.use((req, res, next) => {
const host = req.get('host');
const origin = req.get('origin');
});
app.use((req, res, next) => {
const host = req.get('host');
const origin = req.get('origin');
});