ERR_BLOCKED_BY_CLIENT when redirecting back to application

125 views
Skip to first unread message

Cristiano Ferreira

unread,
Oct 20, 2021, 1:11:02 PM10/20/21
to nw.js
Hi,
I'm using the latest version of nwjs and am getting the ERR_BLOCKED_BY_CLIENT error when redirecting back to the application from an external host.

1. On the local application I set document.location to something like "http://authserver.com"
2. User is authenticated and the authserver redirects back to the origin
3. But since origin is something like "chrome-extension://njaggffhhdhfanfnblmndigcbccdmpbo" the nwjs doesn´t accept as a valid url and displays ERR_BLOCKED_BY_CLIENT (invalid is blocked).

So, is there any way to disable this specific error on nwjs?

thank you in advance,
Cristiano




russell....@gmail.com

unread,
Oct 25, 2021, 5:47:35 PM10/25/21
to nw.js
1) You should be able to set node-main and set error handler when your page first loads that catches error then set the url.


2)  can also look into on startup setting up a localhost webserver and connecting to that instead of chrome-extension.



Yuri Knell

unread,
Oct 27, 2023, 12:01:48 PM10/27/23
to nw.js
guy i love skibidi oilet
Reply all
Reply to author
Forward
0 new messages