nodejs get the origination request url 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');
});