Under Section 82(2) of the Comprehensive Ontario Police Services Act an officer serving with an Ontario police service has the authority to operate as a police officer anywhere in the province.
https://www.ontario.ca/laws/statute/s19001#Sched1109
Quote:
Power to act throughout Ontario
(2) A police officer has authority to act as such throughout Ontario.