The risk from CSRF is that an external site could send data to yours and the users browser will automatically send the authentication cookie along with it. What you need is some way for the receiving action (that your $.ajax() method is sending POST data to) to be able to check that the request has come from another page on your site, rather than an external site. There are a couple of ways to do