-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
area: @angular-devkit/build-angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Milestone
Description
🐞 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",
Splaktar
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix