electron pdfjs 跨域问题

electron 设置webSecurity = false 禁用同源策略  修改viewer.js 文件 修改内容就是下图注释的代码

原文地址:https://www.cnblogs.com/rchao/p/14953763.html