MBS; Xojo 2023r1.1; Win10; WebView2; SetVirtualHostNameToFolderMapping

Hello Christian,

the WebView2 interface has a setting/method SetVirtualHostNameToFolderMapping.
[CoreWebView2.SetVirtualHostNameToFolderMapping Method (Microsoft.Web.WebView2.Core) | Microsoft Learn](Microsoft WebView2)

With that method it is possible to map something like “http://localhost” to “C:.…”.
This is needed to enable modules in local environment and keep CSS linking standard.
I have tested this in another environment with WebView2 and it did work.

Is such method available from MBS WebView2 control or could be implemented?

Thanks a lot!

Well, I can put it on the todo list to add a method for this to the plugin class.