I try to implement infinite scrolling in EE 2.7.2.
There are 2 templates: "infinite_scrolling_main" and "infinite_scrolling_embed". There are no forms in any of these two templates. AJAX call from the page outputted by template "infinite_scrolling_main" should fetch the data outputted by template "infinite_scrolling_embed".
This setting worked correctly prior to EE 2.7. But after upgrade to 2.7.2 any AJAX call outputs error message "The action you have requested is invalid" instead of proper data.
This issue seems to be related to XID handling. If I set
$config['secure_forms'] = "n";
AJAX works correctly.
What should be done to keep secure forms and to be able to fetch data via AJAX in EE2.7.2?