A problem with the front end of WEB. I have a http Server, written by java that calls the open source Nanohttpd, page. The data on the Nanohttpd, page is submitted through
xhttp.open ("POST", url, true);
xhttp.setRequestHeader ("Content-type", "application/x-www-form-urlencoded");
xhttp.send ("");
). How do I achieve CSRF attacks in this way? I checked the information and said that I can add token,. How can I add it?