'Blazor Application stuck "Loading..." in UWP WebView

I am trying to display a Blazor application (The default Blazor template, hosted on a server) in a Xamarin Forms UWP WebView however it gets stuck "Loading...".

If I debug the UWP application (attaching to Script) I get the following exceptions thorwn:

JavaScript critical error at line 1, column 716 in https://localhost:7131/_framework/blazor.webassembly.js\n\nSCRIPT1002: Syntax error.

JavaScript critical error at line 99, column 13 in https://localhost:7131/_framework/aspnetcore-browser-refresh.js\n\nSCRIPT1005: Expected '('

Exception was thrown at line 38, column 60610 in https://localhost:44399/c9828a2102ba4dafa1d62c9962b407b5/browserLink
0x800a139e - JavaScript runtime error: SyntaxError


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source