I am using Ajax (jQuery) and the POST method to update the data in the database. I do the following:
I do not know how to verify that the user is sending data from my site, and not from other places. Please help me solve this problem. Thank!
You are trying to protect against CSRF attacks.
, POST, AJAX. - Javascript, , .
:
, . , HTTP- ( AJAX) - (, , )
CSRF - , , , AJAX, -. , - , HTTP (NB: Javascript, X-Header).
, ; JSON , , HTTP POST .
Source: https://habr.com/ru/post/1726176/More articles:Wrap std :: exception and ApplicationException - c ++ - cliПрофилировщик может начать профилирование при выполнении некоторой процедуры - profilingIs there any library in .Net to do basic sound editing? - c #ASP.NET 3.5 Web Services - c #What are the main differences between Python and PHP? - pythonPHP: convert date in seconds? - phpПроблема с файлами с улучшенной памятью: они переходят на диск вместо ОЗУ - c++Database table partitioning in MySQL - sqlMySQL manipulation and recovery bit in PHP - phpI am trying to create an expert system and my user interface is prepared in .Net, and now I am ready to connect it to LISP - .netAll Articles