Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What technologies are under your site. Parent comment
Now, the following is a hack, but CSRF stuff[0] gives a good indication:
If there's a form, there's a good chance you'll find a construct like:
<form action="." method="post"><input type='hidden' name='csrf_token' value="thetokenvalue" />
You will also most probably find the jQuery function that sets X-CSRFToken on XHRs (see the doc[0] at #ajax). For prototype it'll look like this [1]
[0] https://docs.djangoproject.com/en/dev/ref/contrib/csrf/
[1] http://stackoverflow.com/questions/5551914/protecting-protot...
There are no comments on this comment yet.
Now, the following is a hack, but CSRF stuff[0] gives a good indication:
If there's a form, there's a good chance you'll find a construct like:
Also, there may be a 'csrftoken' value in the cookie.You will also most probably find the jQuery function that sets X-CSRFToken on XHRs (see the doc[0] at #ajax). For prototype it'll look like this [1]
[0] https://docs.djangoproject.com/en/dev/ref/contrib/csrf/
[1] http://stackoverflow.com/questions/5551914/protecting-protot...