Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for WebAssembly
  4. run Qt WASM across private network

run Qt WASM across private network

Scheduled Pinned Locked Moved Unsolved Qt for WebAssembly
3 Posts 3 Posters 1.1k 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.
  • J Offline
    J Offline
    jhayar
    wrote on last edited by
    #1

    Hi ,
    anyone here succeeded to run the wasm which is accessible to other users within the same network

    for example the Qt hosted on computer 1 with IP 10.0.0.2 and i want to access it from computer 2 with Ip 10.0.0.3 , as per checking this isn't working even already set the Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy it doesn;t work ,

    the error i get from the console is
    The Cross-Origin-Opener-Policy header has been ignored, because the URL's origin was untrustworthy. It was defined either in the final response or a redirect. Please deliver the response using the HTTPS protocol. You can also use the 'localhost' origin instead. See https://www.w3.org/TR/powerful-features/#potentially-trustworthy-origin and https://html.spec.whatwg.org/#the-cross-origin-opener-policy-header.

    the serrver wants me to HTTPS protocol which is not an option for me since this is not a public app , but a private Qt app only , as off now , i can only access the app within my own device but only localhost /127.0.0.1 works , Private lan IP is not working also even it was run on the same device .

    any ideas ?

    Thank you very much

    1 Reply Last reply
    0
    • JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      If you do not get a better solution, can you issue yourself with a private certificate for the server to use for HTTPS? That is how I run (non-Qt) web server application using IIS. Don't know whether this applies to you, just a thought.

      1 Reply Last reply
      1
      • B Offline
        B Offline
        brandon698sherrick
        wrote on last edited by
        #3

        Hello @jhayar,

        It seems like you're facing issues with accessing a Qt application running as WebAssembly (WASM) from other devices within the same private network.

        Ensure your Qt application is configured to listen on localhost (127.0.0.1) and try accessing it from another device using the host machine's IP address instead of localhost. Double-check your network configuration to ensure that devices within the same subnet can communicate. If your Qt application is served through a web server like Nginx or Apache, ensure that CORS headers are correctly set to allow access from other IP addresses within your private network. Although HTTPS is recommended for security, if it's not feasible for your private setup, consider alternatives like configuring your network or application to allow HTTP connections securely within your private environment.

        1 Reply Last reply
        0

        • Login

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