V
V
Vlad2019-02-22 19:11:21
AJAX
Vlad, 2019-02-22 19:11:21

Is it safe to use AJAX to validate authorization data?

Welcome all.
The site has an authorization form, however, when entering incorrect user data, it simply redirects to the same page with authorization, but in addition to this, a GET parameter of the error type (url.com/auth?error) is also transmitted, which the script determines and already displays a message about that the data is incorrect. Is it safe to use AJAX to validate the data before submitting the form, so that, for example, you can notify the user that the data is incorrect without a redirect and unnecessary parameters in the address bar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2019-02-22
@thoozu

AJAX is just as much a request (and just as secure) as submitting a form.
But in any case, it would be nice to have an HTTPS connection.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question