Running WebXR from local computer on Apple Vision Pro

I’ve built a little WebXR demo using BabylonJS. I can run it on my local computer and it works fine in the Vision Pro Simulator, but when I run it in the actual device, I get “WebXR can only be served over HTTPS”.

When I’m running in the simulator, it’s on the same computer, so I can use localhost, but on the device I have to use mycomputer.local. There’s an exception for the HTTPS rule for localhost, but not for *.local. How can I work around this?

I’ve encountered the same issue when working with the Meta Quest. There, the solution is to enable port forwarding with the Android Debug Bridge. Is there something like that available for the AVP?

OK, while writing this up I managed to solve it: nowadays it’s possible to run HTTPS on your local server! I used this Guide:

I’m sharing this here in case it’s helpful to other people, but also I’m interested in knowing if there are other solutions people are using for this problem…