Hype reflect with https

Hi, is it possible to use hype-reflect with https.
I need webcam access and test it with ios16, but I have no webcam feed.
Seems like the problem is the page should be served with https.

If you click the Safari button, you could launch your website in Safari and then visit ‘website settings’ to properly allow webcam access by following these instructions:

I assume it is the device webcam, not a remote URL?

Loading Hype Reflect’s content over SSL is a bit more involved and might not be necessary for you. To do this, you would need to generate a local development certificate authority for your computer’s domain name + local ip address to accomplish this and also modify the built in Apache web server to leverage this new certificate — so it is possible but much more difficult than moving that portion of your testing to a regular web server with SSL properly installed or allowing webcam access after jumping over to Safari.

1 Like

Thanks daniel,

I do not have that option, but I published the to my own host. A but cumbersome testing this way, but it works. Thanks for you elaborate answer.

Can I employ Hype-Reflect with HTTPS for webcam access, particularly for testing on iOS 16, even though I'm facing challenges with a missing webcam feed, likely due to HTTPS protocol necessities?

Because Hype's local server runs over http, this is unfortunately not an option.
There is a way to test in a local environment over https though, but it requires some extra work. If your comfortable with the command line, the general workflow would look something like this:

  1. Use mkcert to create a signed certificate for a local domain that points to your computer's hostname. (Install homebrew first)
  2. Add that domain to your hosts file (so you can access it yourself)
  3. Launch a server for a specific folder's contents over port 443 that uses this certificate (we can use Python for this)
  4. Naming your document 'index' during export will make sure it loads when opening this root domain.
  5. You'll need to trust the certificate on your iOS device to load the page.

I know this is not ideal, but lets you load an exported Hype document on mobile safari from the same LAN over https.

If this all sounds good, here's a script that will work: