Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(@angular-devkit/build-angular): support custom headers in dev-se…
…rver Make it possible to configure dev-server to send custom HTTP headers on every client request. These headers can be specified as a key-value map under the new "headers" property of the dev-server builder in angular.json. These headers are then passed on to the webpack devserver. An example use case for this is to enable various security features, such as CSP and Trusted Types, both in local application development and in integration tests, by setting appropriate HTTP headers. This is part of an effort to add support for Trusted Types in Angular. The ability to enforce Trusted Types during development and integration tests is essential, as this can help detect Trusted Types violations that might otherwise break applications when they're pushed to production where such security features may be enforced.
- Loading branch information
1 parent
533ff17
commit db00a24
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters