WebpackDevServer starts the HTTPS service, and the browser indicates that it is not safe.

devServer: {

clientLogLevel: "warning",
https: true,
}

Page prompt is not safe after startup:
clipboard.png

Click to continue to the unsafe page to open the page.
Why, and how to make this https service secure?


your local service does not have a https certificate


there is no https certificate locally, so it should be impossible to use http to directly access


, because your certificate is not issued by an authority in nature, in short, it is an insecure certificate in essence, and it is impossible for the browser to prompt it to be secure. If you can casually make the browser think it is secure, then the certificate itself has no meaning.

Menu