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

前端 未结 6 506
甜味超标
甜味超标 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:08

    In case you control the server you may embed the data being lost in the redirect address itself. So xhr does a POST, and then does a GET with some of the POSTed data being encoded back (by the server) as GET params. No other solutions come up for me...

提交回复
热议问题