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:
parent
4dcf51a233
commit
c2298512b3
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue