I read this post Understanding CSRF - Simple Question But I still do not understanding how the CSRF token can prevent a CSRF token.
The main problem which confused me is that why the attacker can make any http request to my site, but he cannot read back the response?
1、If I post a http request to get token before every post request, attacker also can make an "get token" request to get token.
2、If I set token to the hidden input while the .html page is loading, attacker also can make a "get html" request to get the this .html page and read the value of hidden page.
I just don't understand why the attacker can make request but can not read the response?