search

Home  >  Q&A  >  body text

node.js - nodejs fetch 时设置 referer头

使用fetch 下载 http://img3.laibafile.cn/p/m/203955675.jpg
发现http 头不设置referer: 'http://bbs.tianya.cn/post-develop-1982790-1.shtml'
下载图片为防盗链的图片。

但是我手动设置了referer头还是下载了防盗链的图片。
请问七牛fetch后台是不是没有使用我设置referer

巴扎黑巴扎黑2767 days ago702

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 11:35:27

    Yes, when Qiniu performs a fetch operation, the referer is an operation on the Qiniu server side. Qiniu does not include a referer when making a fetch request.

    reply
    0
  • Cancelreply