Chrome cancels CORS XHR upon HTTP 302 redirect

前端 未结 4 1027
梦毁少年i
梦毁少年i 2020-11-27 04:42

It looks like according to the CORS Spec, GET and POST requests should transparently follow 302 redirects. But Chrome is canceling my request.

Here\'s the JS that d

4条回答
  •  我在风中等你
    2020-11-27 04:55

    http://httpstatus.es/302

    If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.

提交回复
热议问题