skip to Main Content

Node.js & Express web API not working on azure

I have created a basic app with React SPA and Node.js & Express web API using this sample https://github.com/Azure-Samples/ms-identity-javascript-react-tutorial/tree/main/5-AccessControl/1-call-api-roles The app is running fine locally- both front-end authentication and backend API calls are working as expected. When I deploy the…

VIEW QUESTION

Mongodb – req.body undefined in postman form-data but able to get in raw json

app.js const express = require('express'); const app = express(); const hostname = '127.0.0.1'; const port = 3000; const path = require('path'); const bodyParser = require('body-parser'); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.use(express.urlencoded({ extended: false })); app.use(express.json()); app.use('/products', require('./Routes/products.js')); // Set EJS…

VIEW QUESTION
Back To Top
Search