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

SockJS Error

Open TonyMella opened this issue 1 year ago • 2 comments

hello,I have encountered the following error, can you help me see what the problem is.thank you!

Uncaught runtime errors: ERROR SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS at new SockJS (chrome-extension://mkfffbnmdcjmekfjlfmfiebgagldcgde/contentScript.bundle.js:9679:13) at new SockJSClient (chrome-extension://mkfffbnmdcjmekfjlfmfiebgagldcgde/contentScript.bundle.js:7423:17) at initSocket (chrome-extension://mkfffbnmdcjmekfjlfmfiebgagldcgde/contentScript.bundle.js:14342:12) at ./node_modules/webpack-dev-server/client/index.js?protocol=ws%3A&hostname=localhost&port=3000&pathname=%2Fws&logging=info&overlay=true&reconnect=10&hot=true&live-reload=false (chrome-extension://mkfffbnmdcjmekfjlfmfiebgagldcgde/contentScript.bundle.js:7877:55) at options.factory (chrome-extension://mkfffbnmdcjmekfjlfmfiebgagldcgde/contentScript.bundle.js:17353:31) at webpack_require (chrome-extension://mkfffbnmdcjmekfjlfmfiebgagldcgde/contentScript.bundle.js:16810:33) at chrome-extension://mkfffbnmdcjmekfjlfmfiebgagldcgde/contentScript.bundle.js:17928:11 at chrome-extension://mkfffbnmdcjmekfjlfmfiebgagldcgde/contentScript.bundle.js:17933:12

TonyMella avatar Oct 18 '23 09:10 TonyMella

找到解决方法了,切记重启项目,如果还无法解决,将插件移除再次加载。https://github.com/lxieyang/chrome-extension-boilerplate-react/issues/150

TonyMella avatar Oct 18 '23 09:10 TonyMella

you can switch it to ws and it should work.

Romstar avatar Oct 18 '23 13:10 Romstar