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

Developer technologies .NET Xamarin
Developer technologies .NET Blazor
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Washington 921 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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.