问题描述:

vue运行时正常,但是打开页面后报错

Uncaught SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

 解决方案:

在项目列表中的public下的index.html里添加以下内容即可

 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" /> 

Logo

一站式 AI 云服务平台

更多推荐