链接未捕获错误:您必须指定有效的 JavaScript API 域作为此密钥配置的一部分 [英] linkedin Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration
问题描述
我已按照此处列出的 10 分钟说明中的说明进行操作:指南此处列出了来自 stackoverflow 的帮助:stackanswer
I have followed the instructions listed here in the 10 minute instructions: guide And the help from stackoverflow listed here: stackanswer
我仍然收到此错误:
Console.log 错误:
Console.log error:
未捕获的错误:您必须指定有效的 JavaScript API 域作为此密钥配置的一部分.
Uncaught Error: You must specify a valid JavaScript API Domain as part of this key's configuration.
我的代码是这样的:
<script type="text/javascript" src="//platform.linkedin.com/in.js">
api_key:'98eeeu4fd587w4'
</script>
<小时>
其中 api_key 值是我的应用程序中的消费者密钥/API 密钥的值.对于我列出的 JavaScript API 域:http://mediaproof360.com,http://www.mediaproof360.com
经过一天的研究和反复试验,我遇到了困难.
After a day of research and trial and error I am hitting a wall.
非常感谢帮助.我已经使用该新 API 创建了带有凭据的第二个应用程序,但仍然没有运气.
Help is appreciated greatly. I have created a second app with credentials using that new API but still no luck.
推荐答案
你可以试试这个代码
<script type="text/javascript" src="//platform.linkedin.com/in.js">
api_key: 98eeeu4fd587w4
</script>
没有带 api 键的引号将起作用.将此部分添加到 元素中.
No quotes with api key will work. Add this section in the <head>
element.
这篇关于链接未捕获错误:您必须指定有效的 JavaScript API 域作为此密钥配置的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!