Console message: . @0: Not allowed to load local resource

I created a
self.browser = wx.html2.WebView.New(self)
and then put a html file created by bokeh in
html = file_html(self.p, INLINE)
self.browser.SetPage(html, “.”)
This html file contains a Hovertool that can show some files stored in my computer.
The original bokeh code can work well when saved to a .html file but give the message of
console message: . @0: Not allowed to load local resource
when put in wxpython’s browser. I checked the document thinking there maight be some parameters about the browser’s security preference but found nothing.
I wonder if there is a way I can show my local image in wxpython’s browser.

Try changing the baseUrl parameter of SetPage to a "file://..." URL of the folder that is to be the root where the resources are to be loaded from.