GamepadAPI issue in chrome, and brave browser

Issue:

The game is getting stuck because of this gamepad API in the Brave browser, but it works on Firefox.

I have tried adding a security policy meta tag in my index HTML as I have a few suggestions from the community but doesn’t work.

Here are the screenshots of the issue


Appreciate your help, Thanks