简体   繁体   English

在Internet Explorer 11中使用SoundCloud进行身份验证时出现问题

[英]Issue authenticating with SoundCloud in Internet Explorer 11

I'm trying to write some JavaScript code that connects to SoundCloud and lists the tracks on my Soundcloud profile. 我正在尝试编写一些连接到SoundCloud的JavaScript代码,并在我的Soundcloud配置文件中列出曲目。 ( https://soundcloud.com/bigwedgeofcheese ) https://soundcloud.com/bigwedgeofcheese

I have been following the instructions here: https://developers.soundcloud.com/docs/api/sdks 我一直在按照以下说明进行操作: https : //developers.soundcloud.com/docs/api/sdks

I've added a page called callback.html to my locally hosted website as per the instructions. 按照说明,我已经在本地托管的网站上添加了一个名为callback.html的页面。

I have no issues in Chrome but in Internet Explorer I get the following error after the 'Allow “SoundcloudTestApp” access to your SoundCloud account?' 我在Chrome中没有问题,但是在Internet Explorer中,“允许“ SoundcloudTestApp”访问您的SoundCloud帐户后,出现以下错误?” page has disappeared. 页面已消失。

Line: 7 Error: Unable to get property 'setTimeout' of undefined or null reference 行:7错误:无法获取未定义或空引用的属性“ setTimeout”

This is coming from here: 这是从这里来的:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Connect with SoundCloud</title>
</head>
<body onload="window.opener.setTimeout(window.opener.SC.connectCallback, 1)">
    <b style="width: 100%; text-align: center;">This popup should automatically close in a few seconds</b>
</body>
</html>

But this works fine in Chrome. 但这在Chrome中可以正常使用。 Please can anyone help? 有人可以帮忙吗? If you need more info, please let me know and I'll add it. 如果您需要更多信息,请告诉我,我将添加它。 Thanks 谢谢

I've just discovered that I needed to check the box in my Soundcloud application settings for 'Yes, I have read and accepted the Developer Policies *' 我刚刚发现我需要在Soundcloud应用程序设置中选中“是,我已阅读并接受了开发者政策*”复选框。

Now all is well. 现在一切都很好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM