通过关于“反应和电子”的“网站安全证书”

时间:2018-06-26 11:59:57

标签: reactjs certificate electron

我有一个用react编写的应用程序,包含在电子框架中。

在此应用程序中,我必须显示带有不安全选项的本地计算机(https)。我可以使用资源管理器绕过警告来打开UI

Certificate error

但是,我无法在react应用程序中打开UI。这是我的代码:

import React, { Component } from 'react'
import Page from 'components/Page';

export default class EditorPage extends Component {

  componentDidMount() {
    // this is needed, because InfiniteCalendar forces window scroll
    //window.scrollTo(0, 0);
  }
  render() {

    const uri = "https://IPv4:port" 

    return (
      <Page>
        <div>
       <webview src={uri} style={{height:700+'px'}}></webview>
       </div>
      </Page>
    )
  }
}

如何解决证书问题?

0 个答案:

没有答案