News for hackers. Stuff that matters.
Re:Why does Google prepend while(1); to their JSON responses? by blntechie on Saturday May 06, 2017 @02:39PM (#14281628)
It's not the same but aren't the httpOnly cookies kind of serve the same purpose? JS can't read these cookies at all?
Re:Why does Google prepend while(1); to their JSON responses? by hdhzy on Saturday May 06, 2017 @02:58PM (#14281699)
JS can't (that protects against stealing the token) but the server still receives it even when the request originates from foreign domain. That's the gist of CSRF [0].

[0]: https://en.wikipedia.org/wiki/Cross-site_request_forgery