Aspnetcore: Failed to find a valid digest in the 'integrity' in Blazor WASM

Created on 16 Mar 2020  路  5Comments  路  Source: dotnet/aspnetcore

After upgrading the project to the latest preview 3.2.0 preview-2.2 from version 3.1 preview I got this error.

Failed to find a valid digest in the 'integrity' attribute for resource 
'https://draw2mesh.netlify.com/_framework/wasm/dotnet.3.2.0-preview2.20159.2.js' 
with computed SHA-256 integrity 'FJC7gQVpQ5ZmLsci9Oxg/MIH96sVbWXaxI5G3fM7Doc='.
 The resource has been blocked.

When hosting on Netlify I get this error, in debug mode, it works fine.

Please help me I can't deploy with this bug.
Any temporary workaround will work for now.

Most helpful comment

Replaced content of the .gitattributes file with * binary and deleted everything from publish folder except this file and republished and pushed everything is working fine now.

All 5 comments

I also have tried integrity="" but no luck.

I also ran into the same problem.

I hosted at GitHub pages https://line-developer-community.github.io/liff-client-csharp .

image

Hope they help us resolve this issue.
Asp Team Please help it's urgent.

Replaced content of the .gitattributes file with * binary and deleted everything from publish folder except this file and republished and pushed everything is working fine now.

Was this page helpful?
0 / 5 - 0 ratings