[英]Getting “JavaScript API domain is restricted to…” error after adding domain to LinkedIn Javascript API domain list
In the past I have added domains to the Javascript API Domains list for my LinkedIn app and had those domains work with the app without issue. 在过去,我已将域添加到我的LinkedIn应用程序的Javascript API域列表中,并使这些域可以正常使用该应用程序。 However, I added another domain a couple of days ago and I still get the following error 但是,我几天前添加了另一个域,但仍然出现以下错误
JavaScript API Domain is restricted to localhost, first.domain.com, second.domain.com,..... JavaScript API域仅限于localhost,first.domain.com,second.domain.com,.....
The error message does not contain the new domain I added. 错误消息不包含我添加的新域。 This is confusing because I can see the newly added site in the Javascript API domains list in the administration console for the LinkedIn app. 这很令人困惑,因为我可以在LinkedIn应用程序的管理控制台中的Javascript API域列表中看到新添加的站点。
Is there anything I'm missing or has something changed with the API regarding this? 我有什么遗漏或者有关于此的API有什么变化吗?
What was happening is that we were adding the new domain to the Authentication list (in the Authentication tab of the settings page) instead of the JavaScript list. 发生的事情是我们将新域添加到Authentication列表(在设置页面的Authentication选项卡中)而不是JavaScript列表。 Adding the new domain to the Valid SDK Domains list in the Javascript Settings tab worked as expected. 将新域添加到Javascript设置选项卡中的有效SDK域列表按预期工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.