fix redirect problem
This commit is contained in:
19
staticwebapp.config.json
Normal file
19
staticwebapp.config.json
Normal file
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"navigationFallback": {
|
||||
"rewrite": "/index.html",
|
||||
"exclude": ["/images/*.{png,jpg,gif}", "/css/*"]
|
||||
},
|
||||
"globalHeaders": {
|
||||
"content-security-policy": "default-src https:; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src https: data:;"
|
||||
},
|
||||
"mimeTypes": {
|
||||
".json": "application/json",
|
||||
".webmanifest": "application/manifest+json"
|
||||
},
|
||||
"responseOverrides": {
|
||||
"404": {
|
||||
"rewrite": "/index.html",
|
||||
"statusCode": 200
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user