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
2022-10-14T14:57:28.557+00:00

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
TyrBXPwY5UMK

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,301 questions
Blazor
Blazor
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
    2022-10-23T16:09:30.82+00:00

    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.