mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
build(docs-infra): enable Trusted Types enforcement in angular.json (#42800)
Configure angular.json to serve a CSP header that enabled Trusted Types in enforcement mode, both in e2e tests and when running the local development server. This should help prevent regressions related to Trusted Types in the angular.io app. PR Close #42800
This commit is contained in:
parent
2670e964ec
commit
b668f6d2ff
1 changed files with 5 additions and 0 deletions
|
|
@ -138,6 +138,11 @@
|
|||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"headers": {
|
||||
"Content-Security-Policy": "require-trusted-types-for 'script'; trusted-types angular angular#bundler angular#unsafe-bypass aio#analytics google#safe"
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"next": {
|
||||
"browserTarget": "site:build:next"
|
||||
|
|
|
|||
Loading…
Reference in a new issue