application builder - modulepreload - issues with content security policy #26330
Labels
angular/build:application
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
build
Is this a regression?
The previous version in which this bug was not present was
@angular-devkit/build-angular:browser
Description
In
angular.json
we use"subresourceIntegrity": true
to generate a strict-dynamic CSP.Our angular application is hosted as a static website (S3 & CloudFront).
The content security policy is added via a response headers policy. This has a 1783 character limit.
@angular-devkit/build-angular:browser
Initial script chunks in
index.html
Snippet of the generated CSP
Works as expected.
@angular-devkit/build-angular:application
Initial script chunks in
index.html
Issues
chunk...js
frommain...js
.index.html
and add script shas to the CSPchunk...js
frommain...js
.Is there a way to disable the modulepreload? Or is there something else that I should consider when using the application builder?
The text was updated successfully, but these errors were encountered: