gpt4 book ai didi

progressive-web-apps - 无法运行已发布的 Blazor WebAssembly 应用程序

转载 作者:行者123 更新时间:2023-12-04 09:47:52 25 4
gpt4 key购买 nike

当我在 Visual Studio 调试器中运行该应用程序时,它运行良好,但如果我将它部署到服务器,我会在浏览器控制台中收到此错误:

Failed to find a valid digest in the 'integrity' attribute for resource 'http://example.com/pwaexperiment/wwwroot/_framework/wasm/dotnet.3.2.0.js' with computed SHA-256 integrity '80L/hSwps3gjABzV78X6mehoDDgsLkm1pKpSS6fAqiE='. The resource has been blocked.



这个错误是什么意思,我该如何解决?

最佳答案

尝试将以下标签添加到您的项目中:

<BlazorCacheBootResources>false</BlazorCacheBootResources>
引用: https://github.com/dotnet/aspnetcore/issues/24505#issuecomment-684857753

关于progressive-web-apps - 无法运行已发布的 Blazor WebAssembly 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62063983/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com