Azure / Azure/static-web-apps

Updating from Free hosting plan to standard throws 403 forbidden

Open
#1,423 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Recently deployed a static webapp in Azure SWA hosted under free plan and the web app was working fine without any issue. After changing the sku to Standard plan the site throws 403 forbidden.

We changed the hosting plan in Azure portal. Any help is much appreciated. No special config is added `staticwebapp.json` not even routes is part of `staticwebapp.json`

```
{
"trailingSlash": "auto",
"routes": [
{
"route": "/notfound",
"statusCode": 404
}
],
"navigationFallback": {
"rewrite": "index.html",
"exclude": ["/images/*.{png,jpg,gif}", "/css/*"]
},
"responseOverrides": {
"404": {
"rewrite": "/404.html"
}
},
"globalHeaders": {
"content-security-policy": "default-src https: 'unsafe-eval' 'unsafe-inline'; object-src 'none'"
},
"mimeTypes": {
".json": "text/json"
}
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.