Best way to secure an AJAX app

前端 未结 6 1749
逝去的感伤
逝去的感伤 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:26

    SSL is a must, preventing transparent proxy connections that could be used by several users. Then I'd simply check the incoming ip address with the one that got authenticated.

    Re-authenticate:

    • as soon as the ip address changes
    • on a time out bigger than n seconds without any request
    • individually on any important transaction

提交回复
热议问题