简体   繁体   English

将域添加到LinkedIn Javascript API域列表后,将“JavaScript API域限制为...”错误

[英]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域列表按预期工作。

LinkedIn应用程序设置页面

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

相关问题 linkedin javascript api domain仅限于localhost - linkedin javascript api domain is restricted to localhost Linkedin返回未捕获的错误:JavaScript API域仅限于 - Linkedin return Uncaught Error: JavaScript API Domain is restricted to JavaScript API域仅限于localhost phonegap - JavaScript API Domain is restricted to localhost phonegap 有效的JavaScript API域,可在Chrome扩展程序中使用linkedIn - Valid JavaScript API Domain for linkedIn to use in Chrome extension linkedin Uncaught错误:您必须指定一个有效的JavaScript API域作为此密钥的配置的一部分 - linkedin Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration 重定向到不同的域页后,Excel Javascript API不可用 - Excel Javascript API is not available after redirecting to different domain page Linkedin SDK您必须指定一个有效的JavaScript API域作为此密钥配置的一部分 - Linkedin SDK You must specify a valid JavaScript API Domain as part of this key's configuration 您必须将有效的JavaScript API域指定为此密钥配置的一部分。 在LinkedIn - You must specify a valid JavaScript API Domain as part of this key's configuration. in LinkedIn 您必须指定一个有效的JavaScript API域 - You must specify a valid JavaScript API Domain 屏蔽域和跨域JavaScript - Masked domain and cross domain javascript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM