Thanks for the answer, I'll just clarify about the process again, it worked great when I run it on my computer with visual code, after I saw that everything is correct, that is, the sql is updated, returns answers, the forms are updated, I uploaded it to the azure environment, in fact I see the application but the data does not Keep me updated.
This is the main page, but I expect to receive data, I do not receive data.
https://wevote-b8eqa2gwbubcbwf0.canadacentral-01.azurewebsites.net/
require('dotenv').config();
const express = require('express');
const sql = require('mssql');
const cors = require('cors');
const path = require('path');
const helmet = require('helmet');
const appInsights = require("applicationinsights");
// הגדרת Application Insights באמצעות משתנה הסביבה
appInsights.setup(process.env.APPLICATIONINSIGHTS_CONNECTION_STRING)
.setAutoDependencyCorrelation(true)
.setAutoCollectRequests(true)
.setAutoCollectPerformance(true)
.setAutoCollectExceptions(true)
.setAutoCollectDependencies(true)
.setUseDiskRetryCaching(true)
.start();
// אתחול Express
const app = express();
const port = process.env.PORT || 3000;
// הגדרת CORS
app.use(cors({
origin: "*",
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allowedHeaders: ["Content-Type", "Authorization"]
}));
// הוספת Helmet לאבטחה
app.use(helmet());
// הגדרת קבצים סטטיים
app.use(express.static(path.join(__dirname, 'wwwroot')));
I would be very happy to hear from you