Welcome Guest, Not a member yet? Register   Sign In
How to call private controller function from view with javascript
#4

[eluser]ivantcholakov[/eluser]
The controllers's method should be accessible. You have to apply another kind of protection.

As I can imagine, your AJAX call may be the POST type, then, you may pass CSRF or custon security token. The method should validate the request and to execute or reject it. I don't use such a protection yet, this is all I can say.


Messages In This Thread
How to call private controller function from view with javascript - by El Forum - 03-14-2014, 03:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB