Chrome 使用 Google Recaptcha 设置 Cookie 错误

问题描述

下面的代码获取 Recaptcha 响应的数据。

function recaptcha(){
var formData = document.getElementById("uploadform")
const captchaResponse = formData.get("g-recaptcha-response")
  sess.cookie.secure = true // serve secure cookies
  sess.cookie.sameSite = 'none'
}

下图显示了在 Chrome 控制台上收到的错误

enter image description here

我遵循了本教程 https://www.youtube.com/watch?v=vrbyaOoZ-4Q 谁能解释一下这里出了什么问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)