Is ASP.Net jQuery AJAX login safe?

I am trying to create an ASP.NET login form in which I have two options: the first is traditional publishing on the server, and the other uses jQuery ajax to verify user credentials ... Now here are my questions:

What do you think is better? Will there be any security issues if you use jQuery ajax to pass data to code?

Thank you in advance!

+4
source share
2 answers

As long as the connection to the server is at least encrypted, the method used to publish the information does not make a significant difference.

+4
source

Strictly authenticate username / password, which is as secure as sending a login form to the same place. The security issue arose from what you are doing (or not doing) as a function of success and future ajax requests, since javascript can be faked / modified on the fly to interfere with the variables (especially for the user) that you set.

+1
source

Source: https://habr.com/ru/post/1432012/


All Articles