Advertisement
jewalky

Untitled

Jan 25th, 2017
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function getCookie(name) {
  2.   var value = "; " + document.cookie;
  3.   var parts = value.split("; " + name + "=");
  4.   if (parts.length == 2) return parts.pop().split(";").shift();
  5. }
  6. $.ajax({
  7.   url: '../dig.php?type=comm&i=80230908&story=4783894&dir=1',
  8.   headers: {'X-Csrf-Token': getCookie('PHPSESS')}
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement