I am trying google sign in with firebase and trying to load the page through pywebview.
from tkinter import *
import webview as webview
root = Tk()
win_width = root.winfo_screenwidth()
win_height = root.winfo_screenheight()
root.geometry("%dx%d" % (win_width, win_height))
webview.create_window(title='My Window', url='http://localhost:81',confirm_close=True)
webview.start()
root.destroy()
When opened, with browser it works fine. but when opened with my code and clicked on sign in, it shows
Unable to establish a connection with the popup. it may have been blocked by the browser.

What is the solution?