}
// lets bypass a few civicrm urls from this check
- $skip = ['civicrm/admin/setting/updateConfigBackend', 'civicrm/admin/messageTemplates'];
+ $skip = ['civicrm/admin/setting/updateConfigBackend', 'civicrm/admin/messageTemplates', 'civicrm/ajax/api4'];
CRM_Utils_Hook::idsException($skip);
$this->path = $route['path'];
if (in_array($this->path, $skip)) {