Authored by zhangxiaoru

refer

... ... @@ -71,12 +71,11 @@ const common = {
let refer = req.query.refer;
if (!refer) {
refer = req.get('Referer');
refer = req.get('Referer') || req.cookies.refer;
}
refer = utils.refererLimit(refer);
refer && !/signin|login|passport/.test(refer) && res.cookie('refer', encodeURI(refer), {
domain: 'yohobuy.com'
});
... ...