test(core): enforce Trusted Types in ivy-trusted-types integration test (#39614)

Enforce Trusted Types in the ivy-trusted-types integration test by
setting an appropriate CSP header in the project's angular.json.

PR Close #39614
This commit is contained in:
Bjarki 2020-11-09 18:34:40 +00:00 committed by Andrew Kushnir
parent 4dcf51a233
commit c2298512b3
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@
"serve": { "serve": {
"builder": "@angular-devkit/build-angular:dev-server", "builder": "@angular-devkit/build-angular:dev-server",
"options": { "options": {
"browserTarget": "ivy-trusted-types:build" "browserTarget": "ivy-trusted-types:build",
"headers": {
"Content-Security-Policy": "trusted-types angular angular#unsafe-bypass; require-trusted-types-for 'script';"
}
}, },
"configurations": { "configurations": {
"production": { "production": {