How record audio from chrome / youtube etc when using "headphones"?

Things I have tried

My own voice gets recorded fine, but the sound from chrome / youtube does NOT get recorded when using headphones.

Tried both:

What I’m trying to do

How record audio from chrome / youtube etc when using “headphones”?