I've set ‘X-Requested-With’ to ‘XMLHttpRequest’ (otherwise the entire
post is not working)
The response does have ‘X-Tracy-Ajax’ so Tracy surely detects that this is an ajax call, but the bar is still not showing. However, if I substitute the js with jQuery ajax, it works fine.
Any clue on this? I can provide further details if you wish. Note that I'm using the standalone Tracy but I guess this doesn't make a difference.
It seems that the ajax debug bar isn't showing up if I set the header to this:
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
Setting it to ‘application/json’ or simply omitting makes the bar
I'm submitting a form so obviously json won't work.
Last edited by tpr (2016-07-18 15:46)