I am trying to use the WebRTC Livestream extension across networks. I am doing this by port forwarding.
I am using http://<public_ip>:8211/streaming/webrtc-demo/?server=<public_ip>
The web interface loads but the stream is blank and the console a CORS error.
Access to fetch at 'http://x.x.x.x/' from origin 'http://x.x.x.x:8211' has been blocked by CORS policy
I tried to look into the WebRTC Backend Livestream code and handle the CORS policy myself but I can’t figure out how to add a middleware for it.
Note that these settings would disable all CORS restrictions on your services, which may not be desirable for a production environment. If these happen to have a positive result for you, perhaps you may be inclined to configure these options with finer-grained CORS settings before deploying (perhaps with this reference for support: Cross-Origin Resource Sharing (CORS) - HTTP | MDN)
I figured it out. So the extension where we need to configure it from is from the HTTP(S) SERVER: omni.services.transport.server.http it seems that extensions.toml are configured between Omniverse Code and Isaac Sim.
So pretty much the settings you are mentioning but I would indeed avoid using wildcards.