You must update the virtual app path or app base path in index.html to resolve this issue.
That is, the hosted application expects the assets from root folder of the web server. So, you have to update the subfolder name in index.html to serve the files from the path.
For example, if I am hosting an application in http://example.com/blazor/, the index.html looks like the following.
<base href="/blazor/" />
I would suggest you check the below link for better understanding: https://docs.microsoft.com/en-in/aspnet/core/host-and-deploy/blazor/client-side?view=aspnetcore-3.0#app-base-path
You must update the virtual app path or app base path in index.html to resolve this issue.
That is, the hosted application expects the assets from root folder of the web server. So, you have to update the subfolder name in index.html to serve the files from the path.
For example, if I am hosting an application in http://example.com/blazor/, the index.html looks like the following.
I would suggest you check the below link for better understanding:
need an explanation for this answer? contact us directly to get an explanation for this answerhttps://docs.microsoft.com/en-in/aspnet/core/host-and-deploy/blazor/client-side?view=aspnetcore-3.0#app-base-path