在浏览器上运行应用程序时,我在控制台中看到了这个错误。
我已将我的应用程序停靠并使用nginx代理进行https。
我知道它要求我打开端口53703,但是我无法在aws或docker run命令中打开端口?我也是通过aws使用它。
Mixed Content: The page at 'https://xuz.xyz.com/' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://xuz.xyz.com:53703/'. This request has been blocked; this endpoint must be available over WSS
。
Uncaught DOMException: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
at Object.openConnection (https://xuz.xyz.com/__ion-dev-server/ion-dev.js?v=2.0.2:101:19)
at Object.start (https://xuz.xyz.com/__ion-dev-server/ion-dev.js?v=2.0.2:18:10)
at https://xuz.xyz.com/__ion-dev-server/ion-dev.js?v=2.0.2:465:16
注意:我知道盾牌图标,但不想允许不安全的脚本。