Skip to content

Commit

Permalink
Set CSP on karma to prevent 'evalError' regression (#4706)
Browse files Browse the repository at this point in the history
Signed-off-by: Outsider <outsideris@gmail.com>
  • Loading branch information
outsideris authored Aug 5, 2021
1 parent 02bf13d commit 09ffc30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ const baseConfig = {
mochaReporter: {
showDiff: true
},
customHeaders: [
{
match: '.*.html',
name: 'Content-Security-Policy',
value: "script-src https: 'self' 'unsafe-inline'"
}
],
customLaunchers: {
ChromeDebug: {
base: 'Chrome',
Expand Down

0 comments on commit 09ffc30

Please sign in to comment.