-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot open locally hosted site in XRviewer #85
Comments
I believe this is a problem related to the following issue: google-ar/codelab-webxr#4 I was having the same problem until Is started hosting the site on its own domain using services such as github pages. |
Thanks, Is there anyway to create an SSL for localhost? or can you get around that? because the github pages strategy really makes development a pain. |
Yes. You can set up a localhost certificate quite easily. You can Google for some tutorials. I just did it and it works great to try my game on my Quest 2 and on my phone. And with hot reloading (even on those devices) that's really a great and lightweight developer experience. |
You can also use an HTTPS tunneler like ngrok. This also solves this issue with the WebXR Viewer on iphone. |
but ngrok have no free option to use their http agent correct? so unless you are willing to subscribe, that is not a solution? |
I followed the examples exactly as they are listed in the react-XR examples to clone the repo, yarn, and then start. I am using an iphone XS with the latest version of the XR viewer and iOS. however when I try to access the locally hosted instance by going to https://<computer's-ip-address.: with both my computer and iphone on the same network WebXR is not able to access the site. Is there something missing from the instructions for accessing WebXR from a localhost? do I need to do anything specific to be able top access locally hosted instance?
The text was updated successfully, but these errors were encountered: