Answer the question
In order to leave comments, you need to log in
How to redirect without passing referer in express?
I make a redirect from the browser from the page: site.com/test
window.location.href = ' site.com/redirect?url=http://site2.net ';
app.get('/redirect', function( req, res ) {
if( req.query.url )
res.redirect( 301, req.query.url );
else
res.send( 'error' );
});
Answer the question
In order to leave comments, you need to log in
If you are redirecting a user to a site in http, then configure your https, then the referer will not be transmitted =)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question