how ot solve chrome ERR_DISALLOWED_URL_SCHEME when open wss protocol ?

pingfengafei picture pingfengafei · May 15, 2018 · Viewed 11k times · Source

I run node cli node --inspect start/server

Whichstart/server is a koa2 webserver.

and then I got : Debugger listening on ws://127.0.0.1:9229/3323c837-cc74-4897-af12-8fccc9d709c1 I got bellow in chrome when I input ws url :

ws://127.0.0.1:9229/3323c837-cc74-4897-af12-8fccc9d709c1:1 GET ws://127.0.0.1:9229/3323c837-cc74-4897-af12-8fccc9d709c1 net::ERR_DISALLOWED_URL_SCHEME

How can I solve the net::ERR_DISALLOWED_URL_SCHEME?

Answer

MT_Shikomba picture MT_Shikomba · Dec 28, 2019

if you are using Chrome Browser:

  1. enter chrome://flags/ in your browser url
  2. enable #allow-insecure-localhost
  3. restart browser

that worked for me!