Blazorの’integrity’エラーの対処方法

Blazor webassembly self-containedをアップしても’integrity’エラーで loadingで固まる。
結構ここでつまる人が多かったみたいで、MSDNがちゃんと公式に対処方法や原因を記載。

https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-5.0#resolve-integrity-check-failures

Long story short, just add: <BlazorCacheBootResources>false</BlazorCacheBootResources>
to the properties in your .csproj file and rebuild.

(This is purely situational, further reading recommended)

Leave a Reply

Your email address will not be published.