Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I cannot get Electron BrowserWindow to display any images from external link. For example:

<img src="https://ropsten.etherscan.io/images/main/empty-token.png" style="width: 40px; height: 40px;">

I am not sure if this is a CORS issue. But I have already running with the following:

app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors');

and

mainWindow = new BrowserWindow({
        width: 1490,
        height: 900,
        minWidth: 640,
        minHeight: 480,
        show: false,
        webPreferences: {
          nodeIntegration: true,
          webSecurity: false
        },
        title: 'My App',
      });

The error I got from the chromium console is: net::ERR_FAILED I am running Electron 8.5.5

question from:https://stackoverflow.com/questions/65626798/cannot-display-external-images-in-electron-browserwindow

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
412 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...