I have always thought of Riemannian metrics as being an inner product assigned to each tangent space. That is, if $M$ is a manifold, then at any point $p \in M$, $$g_p: T_pM \times T_pM \rightarrow \mathbb{R}.$$ However I am following a set of notes that defines a Riemannian metric as a map on the cotangent bundle: $$g: T^*M \times T^*M \rightarrow \mathbb{R}$$ so that at a particular point $p \in M$, $$g_p: T^*_pM \times T^*_pM \rightarrow \mathbb{R}.$$
At first I thought this might be a typo, but on the Wikipedia page for metric tensors it mentions an isomorphism between the cotangent space and tangent space that allows us to define a metric on the cotangent space. I previously had the impression that this isomorphism gives the inverse metric tensor (i.e. "raising and lowering" indices), but now after reading these notes I am wondering if I am wrong and it instead gives an equivalent way of defining a Riemannian metric.
Which one is correct? Should a Riemannian metric be defined on the tangent space or the cotangent space?