I have a react app that I developed locally and it runs fine. It collects data from an azure sql database, and I have set all the permissions in the database in the static web app and database to allow communications with each other. But when I run the app through static web apps I get a 400 bad request error.
I had the same issue locally until I ran “npm run build” so I added that command into my Azure Static Web Apps CI/CD yml file, but it hasn’t helped.
user25467669 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.