Lazy loaded modules do not contain crossorigin attribute #16801
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 bug report
Affected Package
@angular-devkit/build-angular
Is this a regression?
No
Description
Specifying
'crossOrigin: "anonymous"'
in angular.json makes angular cli to add the corresponding attribute in the <script> elements of the<body>
, but angular is still not appending it in the lazy loaded modules in the<head>
during runtime.Lazy loaded modules will only contain the
crossorigin
attribute hardcoded to 'anonymous', only if "subresourceIntegrity" is true. In this case, also the integrity attribute is added, and in our case this is not desired.Expected is, that <script> from lazy loaded modules behave in the same way as <script> from angular.
🌍 Your Environment
"@angular/cli": "8.3.18",
"@angular/compiler-cli": "8.2.13",
"@angular/language-service": "8.2.13",
The text was updated successfully, but these errors were encountered: