Hi.

I am using the security component against CSRF, and I am also using
Ajax.  I see others have had the same problem I have.

I have added the security component in the app_controler.

Then in one of my controllers I use this code:

$this->Security->requireAuth('add', 'add_streams');

The add action makes ajax calls, however when security enabled the
calls do not work.

I added this in order to see if it worked:

$this->Security->allowedActions = array('ajax_cantons',
'ajax_districts');

But it also does not work.

I see there people that had the same problem and I found this
solution:

https://trac.cakephp.org/changeset/6301#file0

However this solution is not anymore in the subversion repository:

https://trac.cakephp.org/log/branches/1.2.x.x/cake/libs/controller/components/security.php

Does someone know how to solve this?  Am I doing something wrong?

Best regards,

B.

--~--~---------~--~----~------------~-------~--~----~
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