Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve chrome ERR_DISALLOWED_URL_SCHEME when opening wss protocol?

I run node cli node --inspect start/server

Which start/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?

like image 899
pingfengafei Avatar asked May 15 '18 02:05

pingfengafei


2 Answers

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!

like image 119
MT_Shikomba Avatar answered Sep 28 '22 08:09

MT_Shikomba


Just type in Chrome about:inspect then Open dedicated DevTools for Node

like image 41
brixdan Avatar answered Sep 28 '22 07:09

brixdan