Skip to content

Commit

Permalink
fix: Remove use of eval to satisfy CSP
Browse files Browse the repository at this point in the history
Contributes to: #346

Signed-off-by: Dale Lane <[email protected]>
  • Loading branch information
dalelane committed Dec 11, 2020
1 parent 397664f commit 0664c32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<meta property="og:video" content="https://machinelearningforkids.co.uk/static/images/machinelearningforkids.gif" />

</head>
<body>
<body ng-csp="no-unsafe-eval">
<div ng-app="app">
<nav class="navbar navbar-default">
<div class="container-fluid">
Expand Down
1 change: 0 additions & 1 deletion src/lib/restapi/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export const CSP_DIRECTIVES = {
],
scriptSrc: ["'self'",
// TODO : https://github.com/IBM/taxinomitis/issues/346 should investigate these
"'unsafe-eval'",
"'unsafe-inline'",
// used for auth
'http://cdn.auth0.com',
Expand Down

0 comments on commit 0664c32

Please sign in to comment.