问题描述
我在我网站的 iframe 中嵌入了 twitch 播放器,但我收到了一个 javascript 错误,指出错误 400 发布到“https://cognito-identity.us-east-1.amazonaws.com/”。它是真正的 twitch 播放器,它试图发布到 AWS 站点(下面的嵌入 url 示例)。所以我想知道如何消除这个错误。
嵌入式 URL 示例(检查开发工具应该会看到连接到 aws cognito 服务器的错误 400):
https://player.twitch.tv/?video=783306182&parent=localhost&autoplay=false&muted=true
解决方法
我在 twitch 开发者论坛上问过这个问题,他们说这个错误在他们这边,可能是由于中断。因此,将他们的视频嵌入到 iframe 中时,我无法摆脱。
https://discuss.dev.twitch.tv/t/embedded-twitch-player-link-aws-cognito-error-400/29714