I'm making a web browser in Python and PyQt5 and I want to enable allowGeolocationOnInsecureOrigins in my web browser so I can access users location via Google Geo Location API.
Code
self.browser = QWebEngineView()
self.browser.allowGeolocationOnInsecureOrigins(1)
Error
self.browser.allowGeolocationOnInsecureOrigins(1)
AttributeError: 'QWebEngineView' object has no attribute 'allowGeolocationOnInsecureOrigins'