title: WebPack SockJS fails to construct due to the following error: "An insecure SockJS connection may not be initiated from a page loaded over HTTPS"
body: <p>I updated modules for my website project via <strong>npm</strong> and tried to access my site, as usual, through Chrome web browser at "<a href="https://127.0.0.1:8000" rel="nofollow noreferrer">https://127.0.0.1:8000</a>"</p>
  
  <p>Once the site loaded I received the following error:</p>
  
  <blockquote>
    <p>sockjs.js:689 Uncaught Error: SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS</p>
  </blockquote>
  
  <p>Here's the full error stack trace:</p>
  
  <pre><code>Uncaught Error: SecurityError: An insecure SockJS connection may not be initiated from a page loaded over HTTPS
  at new SockJS (sockjs.js:689)
  at new SockJSClient (webpack:///(:8000/webpack)-dev-server/client/clients/SockJSClient.js?:39:18)
  at initSocket (webpack:///(:8000/webpack)-dev-server/client/socket.js?:20:12)
  at Object.eval (webpack:///(:8000/webpack)-dev-server/client?:176:1)
  at eval (webpack:///(:8000/webpack)-dev-server/client?:177:30)
  at Object../node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:8081 (bundle.9c58b1f21bf6b7e8db3b.js:9362)
  at __webpack_require__ (bundle.9c58b1f21bf6b7e8db3b.js:727)
  at fn (bundle.9c58b1f21bf6b7e8db3b.js:101)
  at eval (webpack:///multi_(:8000/webpack)-dev-server/client?:1:1)
  at Object.0 (bundle.9c58b1f21bf6b7e8db3b.js:10997)
  </code></pre>
  
  <p>Any help is highly appreciated!</p>
  
  <p>Thank you</p>