getGamepad will now require Secure Context
Hi all, for several weeks the chrome console has been returning the following message: "gamepad.js: 34 getGamepad will now require Secure Context. Please update your application accordingly. For more information see https://github.com/w3c/gamepad/pull/120 " Does anyone know how to fix. Thanks
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).