-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstaticwebapp.config.json
33 lines (33 loc) · 1.08 KB
/
staticwebapp.config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
"$schema": "https://json.schemastore.org/staticwebapp.config.json",
"routes": [
{
"route": "/*.{js,css,woff2}",
"headers": {
"Cache-Control": "immutable, no-transform, max-age=31536000"
}
},
{
"route": "/assets/*",
"headers": {
"Cache-Control": "must-revalidate, no-transform, max-age=2592000"
}
}
],
"trailingSlash": "auto",
"navigationFallback": {
"rewrite": "index.html",
"exclude": ["/assets/*"]
},
"responseOverrides": {
"404": {
"redirect": "/"
}
},
"globalHeaders": {
"Content-Security-Policy": "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src * 'self' data:; font-src 'self' data:; connect-src * 'self'; media-src * 'self'; object-src 'none'; frame-src 'none'; form-action 'none'; manifest-src 'self'",
"Cross-Origin-Opener-Policy": "same-origin",
"Permissions-Policy": "document-domain=(), storage-access=(self), attribution-reporting=(), interest-cohort=(), browsing-topics=()",
"Referrer-Policy": "same-origin"
}
}