wordpress - 在 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 代表的所有建议,但没有任何帮助。任何意见,将不胜感激。
解决方案
推荐阅读
- laravel - 错误:在 Laravel config\azure-oath 中找不到类“请求”
- linux - grep 反向精确匹配
- javascript - 初始化时出现 Eslint 错误!为 airbnb 标准运行“eslint --init”时,JSON 中位于位置 139 的意外令牌 {
- elasticsearch - 如何编写匹配然后过滤记录的弹性搜索查询?
- python - 在 PyCharm IDE 中安装 tensorflow 的问题
- sql - 从 Oracle SQL 上的周数和年份数获取“一周开始”的日期
- java - “Spring Boot 中的 bodyType=org.springframework.web.multipart.MultipartFile 不支持内容类型‘image/jpeg’”
- sql - SQL 代码包含重复项,即使我已指定它不
- javascript - 有人可以帮我在 x 轴上的时间戳之间提供空间吗
- flutter - 我做了一个Textfield类。但是当我尝试调用value时,它无法通过控制器获取文本字段中文本的真实值