I am terrible about AJAX data post, You know AJAX is client side and can be changed by user, For example I have AJAX request with data id=1 , if user try to change this value and send request, how can i detect the fake value, edited by user?
Asked
Active
Viewed 74 times
0
-
Use CSRF token or pass some headers keys. – Himanshu Upadhyay Jul 20 '17 at 13:56
-
Hello Himanshu thank you, i will learn this, do you know any other tips – Halid Kyazim Jul 20 '17 at 13:58
-
https://stackoverflow.com/a/4195038/4248328 – Alive to die - Anant Jul 20 '17 at 13:58
-
1Possible duplicate of [How can I better protect my php, jquery, ajax requests from malicious users](https://stackoverflow.com/questions/4193825/how-can-i-better-protect-my-php-jquery-ajax-requests-from-malicious-users) – Alive to die - Anant Jul 20 '17 at 13:58
-
@HalidKyazim, the links shared with above comments will give you other ways. :-) – Himanshu Upadhyay Jul 20 '17 at 14:05