Some areas of my SPA need to be open to all users, and some areas require authentication. In these areas, it\'s the data loaded via AJAX that I want to protect.
I prefer to pass the antiforgery token in the header. This way its easy to parse out of the request on the server because its not intermingled with your form's data.
I then created a custom action filter to check for the antiforgery token.