Skip to content

Commit 09ffc30

Browse files
authoredAug 5, 2021
Set CSP on karma to prevent 'evalError' regression (#4706)
Signed-off-by: Outsider <outsideris@gmail.com>
1 parent 02bf13d commit 09ffc30

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎karma.conf.js

+7
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ const baseConfig = {
7272
mochaReporter: {
7373
showDiff: true
7474
},
75+
customHeaders: [
76+
{
77+
match: '.*.html',
78+
name: 'Content-Security-Policy',
79+
value: "script-src https: 'self' 'unsafe-inline'"
80+
}
81+
],
7582
customLaunchers: {
7683
ChromeDebug: {
7784
base: 'Chrome',

0 commit comments

Comments
 (0)
Please sign in to comment.