We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

ACL and AJAX

If I use ACL to deny access to an action called ajaxAction for anonymous users, it only will deny it when I type it in the URL or also when using AJAX?



125.8k
Accepted
answer

Both. As far as the server is concerned, an AJAX request is the same as a regular browser request (well, there may be some extra headers sent, but they're relatively inconsequential)



33.8k
edited Jul '14

Yeah, I thinked the same, but I wanted to ask before for a minimun of hope to not waste time xD. Thanks.