Sahi can be asked to not inject js into requests whose urls follow specific patterns.
Say urls which have say “/ajax/” in them can be excluded from injection.
What you need to do is add the regular expression pattern of the ajaxy urls to config/exclude_inject.txt
so if your url is something like
“.*/ajax/.*” (without quotes) to match all urls with /ajax/ in them and exclude them from js injection.