Added cookie based csrf protection for posts