Best way to secure an AJAX app

前端 未结 6 1864
逝去的感伤
逝去的感伤 2021-01-01 23:53

I am currently working on the authentication of an AJAX based site, and was wondering if anybody had any reccomendations on best practices for this sort of thing.

My

6条回答
  •  感情败类
    2021-01-02 00:27

    A common solution is to hash the user's session id and pass that in with every request to ensure the request is coming from a valid user (see this slideshow). This is reasonably secure from a CSRF perspective, but if someone was sniffing the data it could be intercepted. Depending on your needs, ssl is always going to be the most secure method.

提交回复
热议问题