Looking at the Security component source, you need to override the 
validatePost value in SecurityComponent. The following is untested code, 
but I think it should work.

function beforeFilter() {
     if ($this->action == 'your_action') {
         $this->Security->validatePost = false;
     }
     parent::beforeFilter();
}

Miles J wrote:
> When I add the Security component, all my ajax requests fail. They
> never finish or return data. I am using jQuery and not the built in
> ajax.
>
> What do I have to do to allow this to work? The manual for Security is
> a bit vague.
> >
>
>    

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to