A parent should also be just the domain
So
<iframe src="https://player.twitch.tv/?video=1165453909&parent=https://localhost" frameborder="0"
allowfullscreen="true" scrolling="no" height="378" width="620"></iframe>
should be
<iframe src="https://player.twitch.tv/?video=1165453909&parent=localhost" frameborder="0"
allowfullscreen="true" scrolling="no" height="378" width="620"></iframe>