Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtWebChannel unusable with https ?
Forum Update on Monday, May 27th 2025

QtWebChannel unusable with https ?

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 398 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Talkless
    wrote on 20 Apr 2017, 07:16 last edited by Talkless
    #1

    Hi,

    I am using QtWebChannel in mobile (Android and iOS) application to control Google Maps based webapp loaded with QtWebView from http://our.domain.tld/map, as result I have Google Maps in Qt mobile app, which is nice.

    But, I've tried to load https, and now I get error about WebSocket (in Desktop build, so it's QtWebEngine output):

    js: Mixed Content: The page at 'https://my.domain.tld/map was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://localhost:12345/'. This request has been blocked; this endpoint must be available over WSS.

    So this does not work. If that would be a desktop application, I could install self-signed CA on target system to make self-signed web socket certificate for localhost "valid", but what about mobile solutions?

    1 Reply Last reply
    0

    1/1

    20 Apr 2017, 07:16

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved