The angular distribution of cosmic rays at the boundary of the heliosphere