I have two blazor applications with exactly same code, one running on the url https://subdomain1.domain.com
and the other on https://subdomain2.domain.com
These applications are hosted blazor webassembly. They are sitting behind nginx. subdomain1 is running on port 5001 and the subdomain2 running on 4001.
Although the code is exactly a copy of each other, one works the other gives the integrity error.
Failed to find a valid digest in the 'integrity' attribute for resource 'https://subdomain2.domain.com/_framework/Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll' with computed SHA-256 integrity 'iv4AO84pmcItgSK0QEAXm56IouVakVhOaLOsHuhCELY='. The resource has been blocked.
Unknown error occurred while trying to verify integrity.
I see the request coming in and being delivered in the nginx logs
000.000.000.000 - - [10/Sep/2021:21:59:44 +0100] "GET /_framework/Microsoft.AspNetCore.Components.WebAssembly.Authentication.dll HTTP/1.1" 200 27798 "https://subdomain2.domain.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36 Edg/93.0.961.38"
I cannot figure out why is that one subdomain is giving integrity errors with the framework DLL and the other not, as anyone ever came across something like this?