Skip to content

Commit 68c8ed6

Browse files
authored
docs(examples): add security headers to Angular example (#6947)
1 parent 69b75a9 commit 68c8ed6

File tree

3 files changed

+17
-5
lines changed

3 files changed

+17
-5
lines changed

examples/angular-dashboard-with-material-ui/dashboard-app/.netlify/state.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

examples/angular-dashboard-with-material-ui/dashboard-app/netlify.toml

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"headers": [
3+
{
4+
"source": "/(.*)",
5+
"headers": [
6+
{
7+
"key": "Strict-Transport-Security",
8+
"value": "max-age=31536000; includeSubDomains;"
9+
},
10+
{
11+
"key": "Content-Security-Policy",
12+
"value": "default-src 'self'; script-src 'report-sample' 'self' https://www.datadoghq-browser-agent.com/datadog-logs-v4.js 'sha256-NNRNlUvekpg7yDPcWeHFgr2SbeZBup4y3/n9L6w472A='; style-src 'report-sample' 'self' https://fonts.googleapis.com 'unsafe-inline'; object-src 'none'; base-uri 'self'; connect-src 'self' https://flaky-sheep.gcp-us-central1.cubecloudapp.dev https://graphql.contentful.com https://track.cube.dev https://identity.cube.dev https://logs.browser-intake-datadoghq.com; font-src 'self' https://fonts.gstatic.com https://static.cube.dev; frame-src 'self'; img-src 'self' data: https://static.cube.dev; manifest-src 'self'; media-src 'self'; worker-src 'none';"
13+
}
14+
]
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)