sockjs / sockjs-node

WebSocket emulation - Node.js server
http://sockjs.org
MIT License
2.09k stars 309 forks source link

Insecure URL sockjs-node #277

Closed rrd108 closed 3 years ago

rrd108 commented 3 years ago

Hi,

In a vuejs application when I run lighthouse audit I get the following error:

Insecure url http://192.168.1.2:8080/sockjs-node/info?t=1608572214586

It seems that this (and only this) module do not use the localhost fomain but the equivalent 192.168.1.2 and because of this the audit fails.

npm 6.14.8 sockjs 0.3.20

Is there anything what I can do about this?

brycekahle commented 3 years ago

This library attaches to an existing http server, and thus does not control what address it listens on.