Blazor WASM - Getting error only on mobile browser, not on desktop "Failed to find a valid digest in the 'integrity' attribute for resource ..."

Kuldeep Singh 1 Reputation point

I am getting this integrity issue only with mobile browsers and android webview (Xamarin forms).
I built an application using Blazor WASM service worker also implemented. I created a wrapper/webview application using Xamarin Forms for this Blazor app.
Now, application is working fine in desktop browser like Edge and Chrome but getting integrity issue with mobile browsers and also in android webview.

I googled and found many answers on Stackoverflow but nothing works for mobile browsers, but those answers solved my problem with desktop browsers.

Here is a screenshot of output window in XF Android

A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,420 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Washington 911 Reputation points MVP

    I have found that deleting the "bin" and "obj" directories and doing a rebuild before deploying my Blazor WASM PWA app to production prevents this problem.