I' am working in version 5.53 of AVFP.
I' am trying to detect if a request is AJAX-request. This is needed for me when I turn on debugger (&dubug=on). But if the request is ajax-request, the debugging info-table is included in response-json (see main.prg). So, I have to have finction for determining
if a request is ajax, and do not include debuggin info. So, by my mind, I need analyse request.Headers("x-requested-with") variable:
But there is error: Headers does not evaluated to object?
I'm trying include a list of oResponse.oResponse.Headers in aspvars.prg, but the error is the same.
Please, help me.
Is it possible to access Request.Headers?
In now days I analalyse the end of action for string "_ajax", but it is the bad solution.
Sorry for my English. I'm from Russia.