Set crossorigin to anonymous for integrity attribute (#20348)
* Set crossorigin to anonymous for integrity attribute dotnet/aspnetcore#20305 * Fix formatting of output dotnet/aspnetcore#20305
This commit is contained in:
parent
5285c5e47e
commit
a8bd551d99
File diff suppressed because one or more lines are too long
|
|
@ -133,6 +133,7 @@ function addScriptTagsToDocument(resourceLoader: WebAssemblyResourceLoader) {
|
||||||
if (resourceLoader.bootConfig.cacheBootResources) {
|
if (resourceLoader.bootConfig.cacheBootResources) {
|
||||||
const contentHash = resourceLoader.bootConfig.resources.runtime[dotnetJsResourceName];
|
const contentHash = resourceLoader.bootConfig.resources.runtime[dotnetJsResourceName];
|
||||||
scriptElem.integrity = contentHash;
|
scriptElem.integrity = contentHash;
|
||||||
|
scriptElem.crossOrigin = 'anonymous';
|
||||||
}
|
}
|
||||||
|
|
||||||
document.body.appendChild(scriptElem);
|
document.body.appendChild(scriptElem);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue