AJAX redirect dilemma, how to get redirect URL OR how to set properties for redirect request

前端 未结 6 509
甜味超标
甜味超标 2021-02-01 05:47

First, I\'m working in Google Chrome, if that helps. Here is the behavior:

I send an xhr request via jQuery to a remote site (this is a chrome Extension, and I\'ve set a

6条回答
  •  时光取名叫无心
    2021-02-01 06:02

    Unfortunately there is no way to prevent xhr from auto-following redirects or set credentials for the redirect destination (it would be rather insecure anyway since that would allow the first site to redirect the credentials to any site, not only the one you want to get them).

提交回复
热议问题