-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstaticwebapp.config.json
More file actions
59 lines (59 loc) · 2.15 KB
/
staticwebapp.config.json
File metadata and controls
59 lines (59 loc) · 2.15 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"routes": [
{
"route": "/*",
"allowedRoles": ["anonymous"]
}
],
"navigationFallback": {
"rewrite": "/index.html",
"exclude": [
"/*.html",
"/css/*",
"/js/*",
"/media/*",
"/images/*"
]
},
"responseOverrides": {
"404": {
"rewrite": "/index.html"
}
},
"globalHeaders": {
"Permissions-Policy": "web-share=*",
"Content-Security-Policy": "default-src 'self'; img-src 'self' data: blob: https://*.tile.openstreetmap.org https://*.basemaps.cartocdn.com https://unpkg.com https://*.opensky-network.org https://www.egr.digital; script-src 'self' https://*.googletagmanager.com 'unsafe-inline' https://orbit-bbd0a7b8hqcvfheu.uksouth-01.azurewebsites.net https://cdnjs.cloudflare.com https://unpkg.com; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com https://fonts.googleapis.com https://unpkg.com; font-src 'self' https://cdnjs.cloudflare.com https://fonts.gstatic.com data:; frame-src 'self' https://www.google.com https://www.google.co.uk https://www.youtube.com https://www.youtube-nocookie.com; connect-src 'self' https://api.open-meteo.com https://opensky-network.org https://*.opensky-network.org https://orbit-bbd0a7b8hqcvfheu.uksouth-01.azurewebsites.net https://unpkg.com https://*.tile.openstreetmap.org https://*.basemaps.cartocdn.com;",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "SAMEORIGIN",
"Referrer-Policy": "no-referrer-when-downgrade"
},
"caching": {
"public": [
{
"match": "/media/**/*.{png,jpg,jpeg,gif,svg,webp,mp4,webm,ogg}",
"headers": {
"cache-control": "max-age=2592000, public, immutable"
}
},
{
"match": "/css/*",
"headers": {
"cache-control": "max-age=604800, public"
}
},
{
"match": "/js/*",
"headers": {
"cache-control": "max-age=604800, public, immutable"
}
},
{
"match": "/**/*.{png,jpg,jpeg,gif,svg,webp}",
"headers": {
"cache-control": "max-age=31536000, public, immutable"
}
}
]
}
}