Showing
1 changed file
with
0 additions
and
6 deletions
@@ -380,12 +380,6 @@ const listNew = (req, res, next) => { | @@ -380,12 +380,6 @@ const listNew = (req, res, next) => { | ||
380 | * SEO 友好的品类落地页异步获取商品数据 | 380 | * SEO 友好的品类落地页异步获取商品数据 |
381 | */ | 381 | */ |
382 | const getCategoryGoods = (req, res, next) => { | 382 | const getCategoryGoods = (req, res, next) => { |
383 | - let allowOrigin = _.get(req, 'headers.origin', null) ? | ||
384 | - req.headers.origin : req.protocol + '://' + req.headers.host; | ||
385 | - | ||
386 | - res.setHeader('Access-Control-Allow-Origin', allowOrigin); | ||
387 | - res.setHeader('Access-Control-Allow-Credentials', 'true'); | ||
388 | - | ||
389 | let params = _.assign({}, req.query); | 383 | let params = _.assign({}, req.query); |
390 | let uid = req.user.uid || 0; | 384 | let uid = req.user.uid || 0; |
391 | 385 |
-
Please register or login to post a comment