FThompson/Gamepads.js

getGamepad will now require Secure Context

Opened this issue · 1 comments

Here is the message I get now when I compile my app : getGamepad will now require Secure Context. Please update your application accordingly. For more information see w3c/gamepad#120

Looks like it needs to use https instead of http

https://forum.babylonjs.com/t/warning-about-getgamepad-will-now-require-secure-context/18312

here is why:
https://bugzilla.mozilla.org/show_bug.cgi?id=1591329
1591329 - [GamePad] Require secure context for getGamePads() in Nightly (mozilla.org)
We found an unusually large number of websites were poking at the Gamepad API in third-party contexts (i.e., not directly from gaming websites), which is a strong indicator that tracking scripts are trying to exploit the API. In order to prevent that, moving the API to secure context and adding permissions policy was a prudent solution (in addition to the mitigation we already have in place of only returning a gamepad object when the user interacts with the gamepad).