Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Mixed Content: The page at '<URL>' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint #3375

Closed
hunterInt opened this issue Nov 7, 2020 · 3 comments
Assignees
Labels
kind/not-helia-issue need/triage Needs initial labeling and prioritization

Comments

@hunterInt
Copy link

  • Version:
    0.50.2

  • Platform:
    Linux ubuntu 5.4.0-52-generic daemon #57-Ubuntu SMP Thu Oct 15 10:57:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Severity:

Medium - A non-essential functionality does not work, performance issues, etc.

Description:

My console is filled with these errors (already 400+ in just under a minute of page load):

cap

Is there a way to either prevent my HTTPS page from attempting to load non-ssl connections or suppress these errors?

Steps to reproduce the error:

await IPFS.create();

for await (const chunk of ipfsNode.cat(CID)) {
	chunks.push(chunk);
}
@hunterInt hunterInt added the need/triage Needs initial labeling and prioritization label Nov 7, 2020
@jacobheun
Copy link
Contributor

The underlying issue is that libp2p needs to be more restrictive of its websocket dials, especially in browsers. This is being tracked at libp2p/js-libp2p#796.

@achingbrain
Copy link
Member

This should be fixed by libp2p/js-libp2p-websockets#116 in the near future.

@SgtPooki SgtPooki self-assigned this May 17, 2023
@SgtPooki SgtPooki moved this to 🥞 Todo in js-ipfs deprecation May 17, 2023
@SgtPooki SgtPooki moved this from 🥞 Todo to 🛑 Blocked in js-ipfs deprecation May 17, 2023
@SgtPooki
Copy link
Member

js-IPFS is being deprecated, the replacement is Helia. It's a modern, lightweight, and composable take on what IPFS can be in JS and is where the team's energy will be focussed moving forwards.

To help you upgrade your app to use Helia please see the following resources:

This issue was fixed in libp2p by libp2p/js-libp2p-websockets#116, and the latest libp2p is included in helia

@github-project-automation github-project-automation bot moved this from 🛑 Blocked to ✅ Done in js-ipfs deprecation May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/not-helia-issue need/triage Needs initial labeling and prioritization
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants