JQuery ajax call for logged in users

I am trying to make a regular ajax call. However I get "You are not authorized to perform this action". If i use a regular ajaxLink through yii it all works fine.

There is a reason I need to use jquery afax rather than a yii ajax Link. How can I make sure the regular call send the relevant user information?

Thanks

The error "You are not authorized to perform this action" is related at the permission.

You can modify the configuration in the controller code by adding the action to the list of the allowed actions