Enforcing / Securing POST parameters

前端 未结 2 1137
死守一世寂寞
死守一世寂寞 2021-01-23 06:38

My title is probably vague so please check my situation below.

I have a web application to manage a list of employees. The application is set up in a hub-spoke pattern w

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-23 07:29

    What you usualy do is - click on a row, get the employee ID and send it to the server, retrieve information by ID and publish it to the user. Usualy you keep the ID as some jind of hidden value, so when you update, you update this ID. And, usualy, you don't allow ID changes. IMO no need of checking ID, but if you think some one can jump over, just check if the ID of the page is the same you have in the hidden value.

提交回复
热议问题