gpt4 book ai didi

electron - 用 Electron 方式查看的网站无法加载所有资源

转载 作者:行者123 更新时间:2023-12-03 12:33:55 26 4
gpt4 key购买 nike

我正在尝试使用win.loadURL('https://trello.com');加载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.

我试过了:
  • allowRunningInsecureContent:正确的
  • webSecurity:假
  • 'Content-Security-Policy':'*'
  • 更改我的用户代理

  • 什么都没有出现在控制台中,并且当我使用 标记时,它似乎工作正常。
    根据Trello文章,它尝试从中加载资源的网址是: d78fikflryjgj.cloudfront.net d2k1ftgv7pobq7.cloudfront.net a.trellocdn.com

    最佳答案

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

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

    关于electron - 用 Electron 方式查看的网站无法加载所有资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60350622/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com