Magento 2's back end lets you turn on the canonical link option. You can find it in the following location:
Stores > Configuration > Catalog > Catalog > Search Engine Optimalisation
If you turn it on, canonical links will be added to relevant pages.
You need to turn this option on before any canonical URLs can be displayed on the page.