522 questions
0
votes
1
answer
64
views
ASP.NET/Angular/Azure: Why does refreshing the page still retrieves old data? The api returns correct data & I've set "no-cache"
To give context, I am using Azure Static Web App linked to GitHub, Azure Container App linked to Docker Hub & have Azure SQL database along with SQL Server setup. This is my first attempt in ...
0
votes
0
answers
25
views
Azure static site, redirect all user-agent traffic
Due to the fact my SPA application has hydration issues on ios (separate bug) I am currently in a position where I cannot use SSR, so I have to use an SPA and pre-rendered pages for SEO.
My ...
0
votes
1
answer
125
views
Azure Static Web App - “Deployment Failure Reason: Failed to deploy the Azure Functions.” caused by missing environment variable
I was deploying a .NET 8 isolated Azure Function as part of an Azure Static web app, and the deployment failed with this message:
Deployment Failed :(
Deployment failure reason: failed to deploy the ...
0
votes
0
answers
58
views
Set-Cookie headers are missing when Azure Static Web App proxies requests to linked Azure Function App
I have a Static Web App (blabla-web-dev) linked to an Azure Function App (blabla-pub-api-dev) via Serverless API hosting.
Both use custom domains; SWA uses https://dev.blabla.bla and
the Function App ...
0
votes
0
answers
49
views
How to split Vite+React frontend and Azure Static Web App API backend when sharing code between them?
This question is related to React + backend - project structure when sharing code, but is aimed at Javascript (not TypeScript) and deployement onto a Azure Static Web App resource
I want to get my ...
0
votes
0
answers
26
views
How to be sure to get user's email in userDetails of client principal data?
(This question is related to How can I safely obtain user claims from an Azure Function after authentication?)
I aim to set up Authentication for an Azure Static Web App resource using Okta as an ...
0
votes
1
answer
131
views
Azure static web app deployment with managed function
I try to deploy my static webapp with a managed function to Azure but the function deployment always fails and I don't know why. I used Node v20 and v18. I downgraded my libraries. I tried every ...
-3
votes
1
answer
94
views
How to successfully create a static web app using Terraform apply? [closed]
I have a terraform configuration file that defines a azurerm_static_web_app. When I apply this template, the resource is created and I can successfully deploy a SWA; however, the the console seems to ...
-1
votes
1
answer
159
views
Azure Front Door returns 403 Forbidden when routing to Azure Static Web App (Standard tier) but works with Free tier [closed]
I'm using Azure Front Door (Standard) to route traffic to two Azure Static Web Apps (SWAs) that run the same statically exported Next.js code (next export).
✅ When routed to SWA A (Free tier), it ...
0
votes
0
answers
163
views
Azure Static Web App Authentication Redirect Loop When Hosted Under Sub-path
I'm experiencing an authentication redirect loop with an Azure Static Web App (SWA) when hosting it under a sub-path. Here's my scenario:
Current Setup:
Azure Static Web App with Azure AD ...
0
votes
1
answer
205
views
Cannot create repository token when create a static web app with terraform
I am trying to create a Azure static web app with terraform. I want it to connect to an azure pipeline.
Here the code in Terraform:
resource "azurerm_static_web_app" "...
1
vote
1
answer
109
views
Azure Static Web App not recognizing staticwebapp.config.json in Blazor WASM app when deployed via Azure Pipelines
I have a standalone Blazor WASM app that I am trying to deploy to an Azure Static Web App resource via CI/CD.
My app deploys, but my navigationg fallback rules aren't working. I have a staticwebapp....
0
votes
0
answers
59
views
Unable to sign out of Next.js based Azure Static Web App using Auth0
I'm using Next.js and Auth0 in an Azure Static Web App. When running locally, logout works. However, when in the Azure Static Web App, logout doesn't work. Easy to browse back a page or two and I am ...
0
votes
1
answer
102
views
Why are static files such as polyfills.js and logo.png returning an empty response in (Angular) Azure Static Web App
We are hosting a static Angular 18 application on Azure Static Web Apps (SWA). During runtime, we have noticed that certain static files - specifically polyfills.js and the logo.png image - are being ...
0
votes
1
answer
332
views
Using Managed Identity to call Azure OpenAI endpoint instead of Azure OpenAI key
I have the following code to call Azure OpenAI endpoint using OpenAI Key.
import axios from 'axios';
const openaiApiKey = process.env.REACT_APP_OPENAI_API_KEY;
const openaiApiEndpoint = process.env....
0
votes
1
answer
49
views
Blazor WebAssembly Standalone app can't authenticate when deployed to Azure Static Web App
I've created a Fluent Blazor WebAssembly Standalone App in Visual Studio. I've also done all the work inside AAD B2C with providers and flows and "connected" it to my app. When I run the app ...
0
votes
1
answer
227
views
Azure static web app yaml pipeline Error: Could not detect the language from repo
I am using the task below to deloy my Angular application to the Azure static web app.
- task: AzureStaticWebApp@0
inputs:
app_location: '/app/dist/my-web/browser/'
...
0
votes
1
answer
246
views
Azure Static Web Apps: "No matching static site found" error in Close Pull Request job
I have an Angular app that I want to deploy with Azure Static Web Apps. I have followed the Quickstart: Build your first static web app guide that sets up a Static Web App via the Azure Portal.
I then ...
-2
votes
1
answer
97
views
I am getting Docker limit error deploying angular app to azure app service
I am deploying my angular app to Azure Static web app using bitbucket pipelines.
I followed this Microsoft documentation:https://learn.microsoft.com/en-us/azure/static-web-apps/bitbucket?tabs=angular
...
0
votes
1
answer
197
views
How to read Entra ID properties of a user from an Azure Static Web App
We have an Azure Static Web App with integrated API via an Azure Function (linked backend). The frontend needs to know some properties of the authenticated user (like Job Title) but the /.auth/.me ...
0
votes
1
answer
165
views
Restrict Access to Specific Pages Based on AAD Groups
I'm working on hosting Doxygen documentation using an Azure Static Web App in my company. I've set up an Azure DevOps pipeline to automatically deploy the files to Azure. Here's what I've achieved so ...
0
votes
2
answers
284
views
How to resolve Node Error when deploying azure static web app with the statice web app CLI
I am executing the Static Web API CLI to deploy a simple HTML website.
swa deploy --api-language none --api-version none --env Production --verbose > deployment-log.txt 2>&1
The output is
...
0
votes
1
answer
151
views
Bitbucket pipeline stuck at "Building" when trying to deploy do AZURE Static Web App
For some reason, my pipeline stopped working while I was trying to deploy my static web app on Azure.
pipelines:
branches:
main:
- step:
name: Deploy to test
deployment: test
...
0
votes
0
answers
65
views
I am debugging an AZ function app that gets an audio file and stores it in a temp folder when testing live it give me a error "Unexpected end of form"
I am unable to find the issue when uploading a audio file (live testing) in my static web app. Which will be uploaded to openAI to get a transcript of my voice. When I test it locally it works fine ...
0
votes
2
answers
145
views
Blazor Azure Static Web App can't load Javascript from _content
Recently deployed a Blazor WebAssembly project (via Azure DevOps) to an Azure Static Web App, and while the deployment seems to be okay, and the app loads and runs, accessing a page that uses the ...
0
votes
2
answers
150
views
How do I Parse FormData containing a audio file in AZ function app in 2025
I am working on a static (nextjs) webapp on azure. I want to record my voice (like 5 to 10sec) and get a transcript of it using openai. I got the code working when I send a form with audio data with ...
0
votes
1
answer
406
views
Azure DevOps Oryx build of my ReactJS app fails with 'unable to resolve' error
I have a small ReactJS (using TypeScript) application that builds and runs locally no problem. It uses Vite to build and run the app locally. Works just fine.
But when building in Azure DEvOps for ...
1
vote
1
answer
336
views
Azure Front Door WAF IP restrictions on azure static web apps
I've been working on setting up Azure Front Door custom rules for IP restrictions on Azure Static Web Apps. So far, I have:
Enabled the static web app to integrate with Front Door.
Created a WAF ...
0
votes
1
answer
138
views
Issue Deploying Blazor WebAssembly App with Domain-Driven Design to Azure Static Web App Using GitHub Actions
I'm encountering an issue while deploying my Blazor WebAssembly application, which follows Domain-Driven Design (DDD) architecture, to Azure Static Web Apps using GitHub Actions. The deployment ...
1
vote
0
answers
115
views
Azure Static Web App returns incorrect MIME type for CSS and JS files
I have an issue related to this question: Azure Static Web App returns incorrect MIME type for CSS and JS files (text/html).
I re-implemented the solution according to Aslesha Kantamsetti's response. ...
1
vote
1
answer
550
views
Azure Static Web App returns incorrect MIME type for CSS and JS files (text/html instead of application/javascript and text/css)
Question:
I’m facing an issue with hosting two Angular applications on Azure Static Web App. Each application is hosted in its own subdirectory:
The hostedPages application is available at https://...
0
votes
1
answer
200
views
Best practice for SPA rollback on Azure Static Webapp with Azure Devops Deployment?
I come from the backend world where I built docker images and push them to a registry.
Recently there was the need to develop an angular SPA and host it on azure static webapps. The pipelines are ...
0
votes
1
answer
189
views
Blazor App Missing wwwroot/scripts Folder After dotnet publish in GitHub Actions
I’m building a Blazor WebAssembly app and deploying it to Azure Static Web Apps using GitHub Actions. My app relies on JavaScript files generated from TypeScript with gulp task, which places them in ...
-1
votes
1
answer
146
views
Data API Builder with Azure Static Web Apps
Trying to understand Data API Builder (DAB) and if its right for my use case.
Based off a simple address book example, there is a table "Addresses" that would have columns:
User (the user ...
1
vote
0
answers
29
views
Issues with Protected Routes on Initial Load and Refresh [duplicate]
I am working onReact application wutg Azure Static Web Apps. My goal is to configure path such that some pages are accessible without authentication via direct link maybe as Anonymous user, while ...
0
votes
1
answer
397
views
"The requested content does not exist" on routes other than / - React app as Static Website
The React app I created works fine locally. Then I created a storage account, enabled static website, and deployed build folder to $web. And it works on first sight, but when I click anything that ...
0
votes
1
answer
918
views
How to Set Up Access Control Between Azure Static Web Apps and Azure App Service?
I have deployed a FastAPI backend in Azure App Service and a frontend in Azure Static Web Apps. To enhance security, I want to introduce access control so that only specific clients (in this case, my ...
1
vote
1
answer
433
views
Blazor WASM Deployment Not Including All wwwroot Folders and Files
I created a Blazor WASM application (.NET 9) and am deploying it to an Azure Static Web App. When running it locally, I have an xml file in a folder called 'resources' (under wwwroot) that it reads ...
0
votes
0
answers
206
views
Deploying Angular app to Azure Static Web Apps using Azure DevOps pipeline
When creating an Azure Static Web App in App Services, a CI/CD pipeline is automatically set up to run in GitHub Actions. However, we prefer to use Azure DevOps for our CI/CD processes. We have a ...
0
votes
1
answer
258
views
Deploy Azure Static Web Apps with Terraform / Python?
I'm building a project with Azure Static Web Apps and the Python CDK for Terraform but I'm unsure how do I get the built app / static files onto the Cloud, I'd like to have my process streamlined so ...
0
votes
0
answers
191
views
Azure Pipelines Deployment to static web app timing out suddenly
We use Azure pipelines to build and deploy our react app to Azure Static Web apps.
We use Microsoft Hosted agent(ubuntu-latest) to run our CI/CD pipeline.
From last two days, all of a sudden, our ...
0
votes
1
answer
451
views
How to refresh auth cookie in Azure Static Web App (SWA)
How to configure refresh of auth-cookie, or log out user when cookie has expired?
Details:
We are using Azure SWA with an Azure functions app running on dotnet 8 isolated as the backend api with C#. ...
0
votes
1
answer
169
views
How to access an API with an Azure identity provider from a Python notebook?
We have an API behind an Entra identity provider. If you call the endpoint in the browser you get redirected to a Microsoft login screen first.
Now we want to be able to use the API from a Python ...
1
vote
1
answer
122
views
javascript fetch() breaks execution and throws 404
I have a static azure web app and an azure function, both running locally. The function is working and showing results in the browser.
The application is a vanilla javascript app. And I have the ...
0
votes
1
answer
563
views
Publish new Azure Static Web Apps from Data API Builder
Trying to set up our first Static Web App in Azure, connecting it to our SQL Server in Azure, but struggling to get off the ground. When I add the "Database Connection (preview)" ...
0
votes
1
answer
102
views
Ask: gz file and json file not loaded Azure web app static
i currently have azure web app static free tier and it need to load gz & json file from index.html, however when i checked the site through browser console network the file took long time to ...
0
votes
1
answer
189
views
Axios - React SWA - Azure function app - message: "Request failed with status code 400", name: "AxiosError", code: "ERR_BAD_REQUEST"
I am looking for a way to secure my Azure function app API.
The Static WebApp is react based and has google oauth.
I have simple functions that work from Code + Test , before linking Static WebApp and ...
0
votes
0
answers
161
views
Generate the Authorization Code - Redirecting to https://login.microsoftonline.com/common/oauth2/v2.0/undefined
I have google OAUTH2.0 cliend id setup as below
Origins
http://localhost:3000
https://icy-..-0--f03.5.azurestaticapps.net
https://l..nd-fu..ons.azurewebsites.net
Redirect URIs
http://localhost:3000
...
1
vote
1
answer
388
views
Azure Static Web App sleeps / cold start even with premium standard tier
I'm hosting a Vue3 application on Azure Static Web Apps, but I've noticed that after a period of inactivity, the initial page load becomes noticeably slow, almost like a cold start or sleep mode ...
2
votes
1
answer
379
views
Unable to link Azure SQL Database to Static Web App
I have an Azure SQL Database running. I've created a database blog and table Test.
Using the Azure Portal I've linked my database to the SWA.
Inside my app I have a directory swa-db-connections with ...