run Qt WASM across private network
-
Hi ,
anyone here succeeded to run the wasm which is accessible to other users within the same networkfor 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
-
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.