search

Home  >  Q&A  >  body text

javascript - How to determine the origin of 302 redirect using JS?

https://uri6.com/tkio/Q7R7r2a...

After this webpage jumps, how do you get this origin on the landing page? It is a 302 redirect jump, thank you

学习ing学习ing2839 days ago1456

reply all(2)I'll reply

  • 滿天的星座

    滿天的星座2017-06-30 10:01:57

    Get the HTTP header information referer. If possible, it is best to get it on the server side. If you use JS, you can give it a try

    HTTP referrer (referer, or HTTP referer) is a field in the HTTP header, used to indicate where to link to the current web page, in the format of URL.

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-06-30 10:01:57

    document.referrer

    reply
    0
  • Cancelreply