How does cannabis get you high?

It apparently comes down to THC and endocannabinoid receptors in the brain.

Source: https://www.livescience.com/how-cannabis-high-works.html