简体   繁体   中英

An SSL error when npm run dev

➜  npm run dev
...
 Starting dev server...
 DONE  Compiled successfully in 2768ms
 11:30:11 AM
 Listening at http://localhost:8080

I run the npm run dev command,successful , but browser console put a error:

Failed to load resource: An SSL error has occurred and a secure connection to the server cannot be made. https://localhost:8080/app.js

Why load the app.js by https ?

my npm version: 5.5.1

solve it ! comment this meta in html: <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM