search

Home  >  Q&A  >  body text

javascript - How to modify the referer in the request header

When requesting an image, I found that the referer was judged to be invalid if noreferer was set. Is there any way to modify the referer in the request header?

天蓬老师天蓬老师2744 days ago1357

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-06-28 09:26:37

    Change the image address and set up an nginx proxy to the origin site

    reply
    0
  • 为情所困

    为情所困2017-06-28 09:26:37

    The front end cannot modify the referer. 'proxy_set_header referer' can be set via nginx proxy

    reply
    0
  • Cancelreply