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

bsxbgnwa  于 2023-02-01  发布在  Ionic
关注(0)|答案(1)|浏览(197)

最近我一直在用Persona KYC实现我的Ionic应用程序。2但是我仍然有一个集成的问题。3当我在Ionic中执行javascript代码时,我得到了标题中提到的错误。4如果有人能帮助我和社区解决这个问题,那就太棒了。
脚本:

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); }

调用javascript函数的Typescript方法:

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

pbpqsu0x1#

艾德here from Persona.我们更新了我们的支持文档,以便您深入了解如何找到此错误消息的解决方案:
https://support.withpersona.com/hc/en-us/articles/13522713902355
如果support@withpersona.com建议的修复程序无法解决错误,请访问www.example.com与我们的团队联系。
谢了,艾德

相关问题