-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-static-web-apps.config.json
More file actions
40 lines (40 loc) · 1.14 KB
/
azure-static-web-apps.config.json
File metadata and controls
40 lines (40 loc) · 1.14 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
{
"routes": [
{
"route": "/*",
"serve": "/index.html",
"statusCode": 200
}
],
"navigationFallback": {
"rewrite": "/index.html",
"exclude": ["/images/*.{png,jpg,gif,ico}", "/*.{css,scss,js,json}"]
},
"responseOverrides": {
"404": {
"rewrite": "/404.html",
"statusCode": 404
}
},
"globalHeaders": {
"X-Frame-Options": "DENY",
"X-XSS-Protection": "1; mode=block",
"X-Content-Type-Options": "nosniff",
"Referrer-Policy": "strict-origin-when-cross-origin",
"Content-Security-Policy": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self'; connect-src 'self' https:; media-src 'self'; object-src 'none'; frame-src 'self';"
},
"mimeTypes": {
".json": "application/json",
".css": "text/css",
".js": "text/javascript",
".html": "text/html",
".ico": "image/x-icon",
".png": "image/png",
".jpg": "image/jpeg",
".svg": "image/svg+xml",
".eot": "application/vnd.ms-fontobject",
".ttf": "font/ttf",
".woff": "font/woff",
".woff2": "font/woff2"
}
}