Cakephp 3 IsAuthorized function not allowing ajax

When I login I want the isAuthorized function not to open ajax view, somehow ?, I have already searched but can not find the solution