idea to always include crsf token in GETS
ez |
|
||||
---|---|---|---|---|---|
I looked at all code.. and I have a universal solution for ALL my ajaxcalls. I can add the x parameter using something like:
This was a small test I made in the console, I have made $.getUrlParameter and I have a global named jsMainSettings where I can put the $sys['xk'] thing in.
There should be a piece in common.php like :
where sed_redirect for AJAX - JSON should be something else i think... but you get my point !! ==- I say: Keep it EZ -==
|
|||||
This post was edited by ez (2012-08-22 06:12, 12 years ago) |