Hey
@Omar Ashraf | Community Lead thanks for the help! I figured it out.
The issue was that I was opening the HTML file directly from my file system (
file:/// protocol) instead of serving it through a local web server. Once I ran a simple HTTP server with python3 -m http.server 8000 and accessed it at
http://localhost:8000/Widget.html, the widget worked perfectly.
The public key domain restriction was set to "localhost" so it needed to be accessed via HTTP protocol. All good now!