chrome-extension-boilerplate-react icon indicating copy to clipboard operation
chrome-extension-boilerplate-react copied to clipboard

index.js:1205 Uncaught Error: SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS

Open hungdev opened this issue 2 years ago • 11 comments

I get the error. please tell me how to fix it? image

hungdev avatar Jan 14 '23 05:01 hungdev

is there any fix for that error ?

anass-qalqul avatar Jan 14 '23 20:01 anass-qalqul

Hmm, I haven't been able to reproduce. Would you try adding https: false to the webserver config?

lxieyang avatar Jan 15 '23 02:01 lxieyang

content script error, when open a third-part page:

image

ReAlign avatar Jan 15 '23 06:01 ReAlign

Anyone help?

ReAlign avatar Jan 18 '23 07:01 ReAlign

This is definitely an issue with the WebPack or Web Dev Server and I am not proficient enough at either to know how to fix it.

websocket-error

However I cloned @octohedron's updated fork with a completely custom web server. I was able to install, unpack, and try it out and it had no web socket errors and the content scripts loaded without issues and I could see the console logs it does from the template.

kalyncoose avatar Jan 19 '23 03:01 kalyncoose

Yes this is an issue with content script not loading on any page due to this error

amitava82 avatar Jan 22 '23 01:01 amitava82

This error still happens. Any update to fix this issue?

hadnet avatar Feb 08 '23 06:02 hadnet

Content script not working due to this... it kind of makes the whole boilerplate unusable. any help?

uri3000 avatar Feb 24 '23 00:02 uri3000

@hadnet @uri3000 Use this fork instead, it has a better and working dev server.

kalyncoose avatar Feb 24 '23 06:02 kalyncoose

In webserver.js, change https property to true **. This will get things working, even though you will still see errors on the console. Probably need to configure a local cert to completely silence this, but at least the content script will be loading/running.

** Better yet, replace https: true with server: 'https', as the https property is deprecated.

shawnvoss avatar Feb 25 '23 19:02 shawnvoss

Was anyone able to configure the local cert to silence the error?

** Edit: by making the change @shawnvoss suggests, the error no longer appears

Suket-shah avatar Jun 16 '23 14:06 Suket-shah