[SOLVED...kinda] Issue Opening Twitch Window

When trying to open a window to Twitch.tv from within the CodePen editor, I receive this error:

player.js:14 Failed to load ‘’ as a plugin, because the frame into which the plugin is loading is sandboxed.

How did I get around this? I didn’t change anything to my code, but I did switch to ‘Debug Mode’ on CodePen, clicked to open a window, and have had success every time.

I’m not sure why this works, but I’m hoping for an explanation!

Hi, try opening it in debug view or maybe adding target="_blank" as an attribute in your html anchor. I’m not sure why this happens in codepen but it’s a bug bear for many on here.

Another way around this is to look into github pages for your hosting.

That’s what I wrote. I was saying that it opens in debug view. I’m curious why this happens. Using target=’_blank’ didn’t work.

sorry, yes you did say that but i missed it!.

it’s as the error said, your code operates within a sandbox (a virtual space in which new or untested software or coding can be run securely.) on codepen. Its a security thing partially but also allows lots of pens on the same platform. Whatever, anyway, your external links are not going to work on codepen. It wasn’t designed for this purpose really.

EDIT: @SEGrooms, In this thread, about half way down, the guys figure out why it doesn’t work and why debug view isn’t the answer.