Questions tagged [azure-static-web-app]

340 questions
0
votes
0 answers

Azure Static Web App (ReactTS) - CSP blocks loading resource from API

My react typescript app fails to load resources from API and it returns this error: Content Security Policy: The page’s settings blocked the loading of a resource at http://api.xxxxx.com/v1/blogs (“default-src”). I am using axios and this is how my…
Sachihiro
  • 1,597
  • 2
  • 20
  • 46
0
votes
2 answers

Upload *.csv to be consumed by azure function

I have an azure static web app. I want to upload a daily generated *.CSV file from local, convert it to *.json format with azure functions (daily aswell), store it and then pass it to the static web app on http trigger request. How can I upload the…
0
votes
1 answer

Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcException: Cannot find module 'dotenv'

Azure Static Web App (SWA) with integrated API whose index.js has require('dotenv').config({ path: './environment/misc.env'}); Local-run Azure Static Web Apps emulator perfect. Merged into GitHub master branch triggers Azure CI/CD deploy into…
Jeb50
  • 6,272
  • 6
  • 49
  • 87
0
votes
1 answer

Is it possible to call one Azure Function from another inside Azure Static Web Apps?

I'm working on an Azure Static Web App and encountering some difficulty with calling Azure Functions from sources other than the Static Web App's Website. For example, if I have a function /api/FunctionA and another function /api/FunctionB, I'd like…
Dustuu
  • 77
  • 2
  • 8
0
votes
0 answers

Unable to set Jekyll Environment to production on Windows 10

I've been trying for the past hour to build my jekyll site locally with JEKYLL_ENV=production with no success. I've tried the following methods which I got from this. set JEKYLL_ENV=production | jekyll build run one command at a time a. set…
Rafferty
  • 937
  • 1
  • 9
  • 16
0
votes
2 answers

Static Web Apps shows "Refused to apply style from because its MIME type ('text/html') is not a supported stylesheet MIME type"

I deployed to Azure Static Web Apps the default app that comes whenever you create a new Blazor WebAssembly app via dotnet new blazorwasm. At first it works properly but when I added webpack to build my SASS file, it showed me this error once it…
0
votes
1 answer

reactjs deployed on Azure-Static-web can't download blob

I have a Static web app in Azure. It's written with Reactjs and I want to download the response of calling an API. return new Promise((resolve, reject) => { fetch('URL', { method: 'GET', headers: { Authorization: 'Bearer…
Mehdi Sheikh
  • 201
  • 3
  • 9
0
votes
1 answer

Call BYOF from Blazor WASM in Azure Static Web App

I have a well functioning Azure Function App running multiple http triggered functions that provide JSON payloads. I am trying to call a specific function from my Blazor WASM hosted on Azure Static Web App. I have linked the Function App to the…
0
votes
1 answer

Azure SWA - Adding Custom OIDC provider breaks auth

It's a bit weird but I created Azure Static Web App with Azure Active Directory Auth. Now, I've added an OIDC provider (Azure B2C in my case) and the app stopped redirecting to the auth providers. Neither /.auth/login/b2c nor /.auth/login/aad. It…
0
votes
1 answer

Are PUT and DELETE requests supported by Azure Static web apps CLI on local environment?

Does the Azure Static web apps CLI(Github link) support other HTTP methods than GET and POST? I'm trying to set up Azure Static web apps CLI on my local environment, and GET and POST requests to port 4280 works fine, but PUT and DELETE requests…
hazard
  • 418
  • 5
  • 10
0
votes
1 answer

Azure Static Web App Authorization Link Issue - Redirecting to Wrong Identity Link

I have a web app hosted on Azure Static Web App via Azure Devops. The app works fine but cannot get Azure Static Web App authorization to work. The web app can be access via ...6bde6303 .1. azurestaticapps.net link Authentication is supposed to be…
petrasb
  • 11
  • 1
0
votes
1 answer

Azure Static Web Apps multi language websites that use microformat (eg en-GB , it-IT )

It is possible to cleanly support URLs such as https://www.myawsomeapp.com/en-GB/ https://www.myawsomeapp.com/it-IT/ routes are angular routes and we need the fallback to fallback to the countries content. the file system has a folder for each…
Steve Drake
  • 1,968
  • 2
  • 19
  • 41
0
votes
1 answer

Assign custom roles with a function and Microsoft Graph in statci web apps

I'm trying to follow Tutorial: Assign custom roles with a function and Microsoft Graph I have gone through each step carefully and configured all the setting properly. But when I clikc Login I see following error in console GET…
0
votes
2 answers

Issue with nuxtJs, vuetify and azure

I deployed a static web app, made in nuxtJs with vuetify. All is working very well locally but once deployed, I cant see all component done with vuetify. I follow those instructions : https://nuxtjs.org/deployments/azure-static-web-apps/ Thank you.
cibou
  • 9
  • 1
  • 3
0
votes
1 answer

Unable to debug non-HTTP triggered functions in Azure Static Web Apps (SWA)

We have a gatsby Azure SWA running on port 8000 and a separate functions App running on port 7071 (Functions app not part of the SWA). Have the latest static-web-app-cli and have been using the following command for proxying function calls with no…