-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstaticwebapp.config.json
More file actions
33 lines (33 loc) · 979 Bytes
/
Copy pathstaticwebapp.config.json
File metadata and controls
33 lines (33 loc) · 979 Bytes
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",
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/api/*", "/assets/*", "*.js", "*.css", "*.json", "*.ico", "*.svg", "*.png", "*.jpg", "*.jpeg", "*.gif", "*.woff", "*.woff2", "*.ttf", "*.eot"]
},
"routes": [
{
"route": "/api/*",
"allowedRoles": ["anonymous", "authenticated"]
}
],
"responseOverrides": {
"404": {
"rewrite": "/index.html",
"statusCode": 200
}
},
"globalHeaders": {
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"X-XSS-Protection": "1; mode=block",
"Referrer-Policy": "strict-origin-when-cross-origin",
"Permissions-Policy": "accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()"
},
"mimeTypes": {
".json": "application/json",
".wasm": "application/wasm"
},
"platform": {
"apiRuntime": "node:20"
}
}