DeviceOrientation works from server but not from any other server

Hi, I tried this example on the website and it works beautifully on both Chrome and Firefox on Android:

However, once I install three.js on other servers (local or online), the above code only works in Android Firefox, and not Android Chrome (the image does not pan).

Is there something I should set in the server to correct this?

Many thanks for your help

Are you serving your content via HTTPS?

1 Like

Hi Mugen87, thanks for the reply.
No it’s just a freshly installed Apache server with basic settings. I have not enabled SSL or anything else

This could be the problem. Try it with HTTPS and see if it solves the issue.

Thanks Mugen87, it worked!
Kind regards,