Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to enable allowGeolocationOnInsecureOrigins in Python



  • I'm making a browser in Python with PyQt5. I want to enable Google Geo Location API. Basically I want to show popup when a site want to get user's location.

    self.browser = QWebEngineView()
    self.browser.allowGeolocationOnInsecureOrigins:True

    If we can auto allow the browser for getting location permission that will be best.


Log in to reply