Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating from Free hosting plan to standard throws 403 forbidden #1423

Open
share2praveen opened this issue Feb 28, 2024 · 3 comments
Open

Comments

@share2praveen
Copy link

share2praveen commented Feb 28, 2024

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"
  }
}
@thomasgauvin
Copy link
Contributor

Do you have additional details about the error message you are encountering?

@share2praveen
Copy link
Author

@thomasgauvin nope! I'm getting 403 forbidden error page

@thomasgauvin
Copy link
Contributor

thomasgauvin commented Mar 4, 2024

It seems you may have the wrong file name for the static site configuration, staticwebapp.config.json as per docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants