Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hungdev opened this issue Jan 14, 2023 · 11 comments

Comments

@hungdev
Copy link

hungdev commented Jan 14, 2023

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

@anass-qalqul
Copy link

anass-qalqul commented Jan 14, 2023

is there any fix for that error ?

@lxieyang
Copy link
Owner

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

@ReAlign
Copy link

ReAlign commented Jan 15, 2023

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

image

@ReAlign
Copy link

ReAlign commented Jan 18, 2023

Anyone help?

@kalyncoose
Copy link

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.

@amitava82
Copy link

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

@hadnet
Copy link

hadnet commented Feb 8, 2023

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

@uri3000
Copy link

uri3000 commented Feb 24, 2023

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

@kalyncoose
Copy link

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

@shawnvoss
Copy link

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.

@Suket-shah
Copy link

Suket-shah commented Jun 16, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants