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

[bug] Unable to access HTTP mjpg servers #5757

Closed
noamzaks opened this issue Dec 3, 2022 · 2 comments
Closed

[bug] Unable to access HTTP mjpg servers #5757

noamzaks opened this issue Dec 3, 2022 · 2 comments
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@noamzaks
Copy link
Contributor

noamzaks commented Dec 3, 2022

Describe the bug

Unable to access local network MJPG servers with unsecure HTTP

Reproduction

Use an <img src="http://192.168.1.1"> somewhere in your webview.

Expected behavior

No response

Platform and versions

Environment
› OS: Windows 10.0.22000 X64
› Webview2: 107.0.1418.62
› MSVC:
- Visual Studio Community 2022
› Node.js: 16.15.0
› npm: 8.5.5
› pnpm: Not installed!
› yarn: Not installed!
› rustup: 1.25.1
› rustc: 1.64.0
› cargo: 1.64.0
› Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
› @tauri-apps/cli [NPM]: 1.2.1
› @tauri-apps/api [NPM]: 1.1.0 (outdated, latest: 1.2.0)
› tauri [RUST]: 1.1.1,
› tauri-build [RUST]: 1.1.1,
› tao [RUST]: 0.14.0,
› wry [RUST]: 0.21.1,

App
› build-type: bundle
› CSP: unset
› distDir: ../dist
› devPath: http://localhost:5173/
› framework: React

App directory structure
├─ .git
├─ .github
├─ .webpack
├─ dist
├─ node_modules
├─ out
├─ src
└─ src-tauri

Stack trace

No response

Additional context

devtools console

While this may be on the verge of security/insecurity, I think for some use cases like robotics it makes sense to enable this.

discord thread

@noamzaks noamzaks added status: needs triage This issue needs to triage, applied to new issues type: bug labels Dec 3, 2022
@noamzaks noamzaks changed the title [bug] [bug] Unable to access HTTP mjpg servers Dec 3, 2022
@ayelsew
Copy link

ayelsew commented Dec 4, 2022

@noamzaks do you have any screenshots or output messages related to the error?

@noamzaks
Copy link
Contributor Author

noamzaks commented Dec 4, 2022

@noamzaks do you have any screenshots or output messages related to the error?

In the DevTools console it showed the Mixed Content warning (The page at .. was loaded over HTTPS but requested an insecure image .. this was automatically upgraded to HTTPS). Then a bunch of net errors and failing requests, because the HTTP server did not support SSL.

Unfortunately I don't have access right now to the computer and robot I was working with, but I will try to get it ASAP (also for the required platform info - apologize for the delay)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants