Skip to content

Commit

Permalink
chore: Add content security policy headers to dev server and index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
bbodine1 committed May 6, 2024
1 parent 98b07f1 commit 687d7a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/sbtcc/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",
"options": {
"headers": {
"content-security-policy": "default-src 'self'; script-src 'self' 'nonce-randomNonceGoesHere'; style-src 'self' 'nonce-randomNonceGoesHere';"
},
"port": 4202
},
"configurations": {
Expand Down
3 changes: 2 additions & 1 deletion apps/sbtcc/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="CSP_NONCE" content="randomNonceGoesHere" />
<title>Small Business Tax Credit Calculator</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
Expand All @@ -18,6 +19,6 @@
/>
</head>
<body class="mat-typography">
<sbtcc-root />
<sbtcc-root ngCspNonce="randomNonceGoesHere" />
</body>
</html>

0 comments on commit 687d7a5

Please sign in to comment.