Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用electron查看的网站无法加载所有资源_Electron - Fatal编程技术网

使用electron查看的网站无法加载所有资源

使用electron查看的网站无法加载所有资源,electron,Electron,我正在尝试加载win.loadURL'https://trello.com'; 这很好,但登录页面显示 Your browser was unable to load all of Trello's resources. They may have been blocked by your firewall, proxy or browser configuration. Try refreshing the page and if that doesn't work, check out o

我正在尝试加载win.loadURL'https://trello.com'; 这很好,但登录页面显示

Your browser was unable to load all of Trello's resources. They may have been blocked by your firewall, proxy or browser configuration.

Try refreshing the page and if that doesn't work, check out our troubleshooting guide.
我试过:

AllowRunningSecureContent:true

网站安全性:false

“内容安全策略”:“*”

更改我的用户代理

控制台中没有显示任何内容,当我使用标记时,它似乎工作正常。 根据Trello的一篇文章,它试图加载资源的URL是:d78fikflryjgj.cloudfront.net、d2k1ftgv7pobq7.cloudfront.net或a.trellocdn.com

在创建新BrowserWindow时添加此contextIsolation:true

mainWindow = new BrowserWindow({
    width: 600,
    height: 600,
    webPreferences: {
      contextIsolation: true
    }
  })