首页 > 解决方案 > 在 Wordpress 网站中实现 Linkedin 自动填充插件

问题描述

Linkedin 技术解决方案将我引导至此处寻求帮助。

我正在尝试在https://www.perxtech.com/customer-loyalty-solution-2/上实现 Linkedin 的自动填充插件&linkedin 要求我在另一个页面上从头开始创建https://www.perxtech.com/customer-忠诚度解决方案 3/

两个页面都失败了,因为自动填充按钮没有加载,它似乎生成了一个 iframe 然后它停止了。

该网站在 wordpress 上运行。该表格是使用重力表格创建的。

以下是我在 Gravity Forms 本身的 HTML 占位符的第一页上使用的脚本:

<script src='https://www.linkedin.com/autofill/js/autofill.js' type='text/javascript' async></script><script type='IN/Form2' data-form='gform_37' data-field-firstname='input_37_5' data-field-phone='input_37_4' data-field-email='input_37_2' data-field-company='input_37_6'></script>

以下是我在页面代码编辑器的第二页上使用的脚本:

<script src='https://www.linkedin.com/autofill/js/autofill.js' type='text/javascript' async></script><script type='IN/Form2' data-form='gform_36' data-field-firstname='input_36_5' data-field-phone='input_36_4' data-field-email='input_36_2' data-field-company='input_36_6'></script>

领英代表向我保证 www.perxtech.com 已被列入白名单。正如linkedin所引用的“我们不必包含完整的 URL,只包含允许您跟踪任何子域的高级域

两者都产生了类似的错误。
来自 Chrome 的控制台错误截图 Chrome 中的
错误:加载资源失败:服务器响应状态为 400 ()

来自 Firefox 的控制台错误屏幕截图 来自 Firefox 的
错误:跨域请求被阻止:同源策略不允许在https://www.linkedin.com/autofill/track/读取远程资源。(原因:缺少 CORS 标头“Access-Control-Allow-Origin”)。

我已经尝试了 Linkedin 代表的所有建议,但没有任何帮助。任何意见,将不胜感激。

标签: wordpresslinkedinautofilllinkedin-plugins

解决方案


推荐阅读