If I put:
this.securejson = true;
into my Application.cfc, then my $.ajax function call doesn’t callback a .done function.
It works if I turn securejson off.
Is there a known method to work with securejson in ajax?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This.SecureJsononly works with the built-in cfajax functionality – you need to disable it to work with any other libraries.For more information, see Pete Freitag’s “Prefix Serialized JSON in ColdFusion”
For a workaround, see Chris.m0nk3y’s “Disabling secureJson prefix at runtime” – where he suggests using
getPageContext().getFusionContext().setSecureJSON(boolean)to toggle it on/off as required.