Since it’s expecting to operate over SSL, so you’d need to server your local HTML file over SSL.
So you’d need to raise a SSL Powered server.
Since file:// is really limited on permissions.
Disclaimer: not really tested doing this as 99% of my work I’m on a SSL’ed server