M
M
Martolip2019-06-14 23:04:09
AJAX
Martolip, 2019-06-14 23:04:09

How to make a POST request using JS, with a transition to the page and a redirect?

The web server accepts JSON using the POST method for a user authorization request, and in response returns HTTP Status 302 and redirects to the URL specified in JSON, passing the token in the URL hash and header.
Is it possible to make such a request (with a transition to the page) in the browser? If not, what should the implementation look like?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question