问题
I am facing an issue when loading a site built and published using blazor. I get the following error message:
" Failed to find a valid digest in the 'integrity' attribute for resource 'https://MYWEBSITEURL.com/_framework/System.Private.CoreLib.dll' with computed SHA-256 integrity 'xV9SflNt5Ex5gP7OznQorlp2VkdJXkcAiopU+h5DRzY='. The resource has been blocked. "
I assume that the browser blocks the files from downloading because the hashes created when publishing do not match.
No files where edited after publish and no git was involved I publish the application from VS 2019 and upload to the server via FTP.
However, the pattern is random. If I refresh the page a few times, it works, and if I refresh the page again, it breaks again. Some times one resource gest blocked, other times none, and other times 10.
Any assistance would be greatly appreciated.
来源:https://stackoverflow.com/questions/66063159/random-blazor-failed-to-find-a-valid-digest-in-the-integrity-attribute-for-re