how to get origin nodejs 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');
});