jQuery,sending password via ajax?

前端 未结 5 1743
说谎
说谎 2020-12-05 13:59

I have registration box,and I want users to register via ajax. Is it safe to send password via jquery ajax? If not,can someone explain what to do to secure password data,any

5条回答
  •  忘掉有多难
    2020-12-05 14:27

    Make sure that you're sending it via POST and use SSL rather than plain old http and you should be fine. Sending it via AJAX does not make it less safe than a regular post.

    See this answer (and another discussion here) for a more in depth explanation, but the jist of it is that the request you're making, and the information that is transmitted over the wire is fundamentally the same whether its an AJAX request or form submit.

提交回复
热议问题