JsPDF - 不允许将顶部框架导航到数据网址 [英] JsPDF - Not allowed to navigate top frame to data URL

查看:691
本文介绍了JsPDF - 不允许将顶部框架导航到数据网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在更新谷歌浏览器后,新窗口中的报告jsPDF不再起作用。

控制台显示消息:


不允许将顶部框架导航到数据URL:
data:application / pdf; base64,JVBERi0xLjMKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1 ....


您能帮我吗?

谢谢。

https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/GbVcuwg_QjM



您可以尝试将jsPDF渲染为iFrame


After updating Google Chrome, the report jsPDF in a new Window does not work any more.

The console shows the message:

Not allowed to navigate top frame to data URL: data:application/pdf;base64,JVBERi0xLjMKMyAwIG9iago8PC9UeXBlIC9QYWdlCi9QYXJlbnQgMSAwIFIKL1....

Can you help-me?

Thanks.

解决方案

Apparently Google Chrome has removed support for top-frame navigation, you can see more informations here: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/GbVcuwg_QjM

You may try to render the jsPDF to an iFrame

这篇关于JsPDF - 不允许将顶部框架导航到数据网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆