繁体   English   中英

Ionic 拒绝在框架中显示“https://withpersona.com/”,因为它将“X-Frame-Options”设置为“deny”

[英]Ionic Refused to display 'https://withpersona.com/' in a frame because it set 'X-Frame-Options' to 'deny'

最近我一直在使用 Persona KYC 实施我的 Ionic 应用程序。 但是我在集成方面仍然存在问题。 当我在 Ionic 中执行 javascript 代码时,出现标题中提到的错误。 如果有人可以帮助我和社区解决这个问题,那就太棒了。

脚本:

function openClient(uid) {
const client = new Persona.Client({
    templateId: 'itmpl_KxEjwiJXJMntb25dJXdrBnTP',
    environmentId: 'env_gQDYrnzBZfXSiPWWdj4VSRGo',
    referenceId: uid,
    onReady: () => client.open(),
    onComplete: ({ inquiryId, status, fields }) => {
        console.log(`Completed inquiry ${inquiryId} with status ${status}`);
    }
 });
}
function cancelClient() { client.cancel(true); }

Typescript 方法调用 javascript function:

declare var openClient; 
async openVerifyIdentityModal() {
  if (!this.verifyIdentity) {
    await openClient(this.auth.currentUser.uid);
    await Preferences.set({ key: "verifyidentity", value: "true" });
  }
}

来自 Persona 的 Ed。 我们更新了我们的支持文档,以便为您提供有关在哪里可以找到此错误消息的解决方案的见解:

https://support.withpersona.com/hc/en-us/articles/13522713902355

如果建议的修复无法解决错误,请通过 support@withpersona.com 联系我们的团队。

谢谢,埃德

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM