I want to be able to use CSFR to validate my forms on POST, but it interferes with the following ajax calls, based on code from the Yii skeleton app.
if (confirm('Are you sure you want to delete this?')) {
$.post($(this).attr('href'), {}, function(response){
});
$(this).parent().parent().fadeOut("slow");
}
Is there anyway i can either:
Ignore the CSRF validation for Ajax POSTs (i don't want to use GET for this as it's a delete request)
Can i even include a dummy form and use that form's hidden CSRF input value to validate the submission?