Added function to add csrf from cookies to post body.