An Azure service that provides streamlined full-stack web app development.
Hello @Daniel Brown
The key error here is: "Failed to load module script ... server responded with a MIME type of "text/html"
followed by the failure to load: /_framework/dotnet.js
This usually means dotnet.js isn't being served from the deployed Blazor WebAssembly output. Instead, Azure Static Web Apps is returning index.html for that request, so the browser receives text/html where it expects JavaScript/WASM. The Bootstrap tracking-prevention messages are unrelated to the Blazor startup failure.
Check the deployment first.
For a standalone Blazor WebAssembly application, Microsoft states that the published static site comes from the application's published wwwroot directory. That output should contain index.html and the _framework directory with the Blazor runtime assets.
After publishing locally, check:
bin/Release/<target-framework>/publish/wwwroot/
index.html
_framework/
dotnet.js
blazor.webassembly.js
...
Then verify your Static Web Apps workflow's app_location and output_location. A common cause is deploying the project/source directory or the wrong build-output directory instead of the actual Blazor publish output.
Also check wwwroot/index.html. If the application is hosted at the root of the azurestaticapps.net site, the Blazor base path should normally be:
<base href="/" />
An incorrect base path can cause _framework requests to be made against the wrong URL. Microsoft documents that standalone Blazor WebAssembly apps hosted at the root normally use / as their base path.
For Azure Static Web Apps, Microsoft also recommends a staticwebapp.config.json containing the navigation fallback:
{
"navigationFallback": {
"rewrite": "/index.html"
}
}
However, the fallback doesn't replace the _framework files. If /_framework/dotnet.js doesn't exist in the deployed artifact, the fallback can cause index.html to be returned instead—which produces exactly the MIME-type error you're seeing. Azure documents that navigationFallback can rewrite unmatched requests to index.html.
As a quick confirmation, open this directly in the browser:
https://<your-app>.azurestaticapps.net/_framework/dotnet.js
If you see an HTML page instead of JavaScript, the _framework deployment/path is the issue.
So, focus on the Blazor publish output and Static Web Apps deployment paths, not the browser's Tracking Prevention messages.
Microsoft references:
Host Blazor WebAssembly with Azure Static Web Apps
Blazor WebAssembly hosting and deployment
Azure Static Web Apps configuration
Help make this community better for everyone: if this answer resolved your issue, please accept it or upvote it. If not, share more details in a comment so we can continue the discussion and find the right solution.