The issue is that all the PUT requests are not working on idx I’m getting “preflight” error and CORS problems and this is my code
app.use(
cors({
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
origin: [
"http://localhost:5173",
"http://5173-idx-pfe-edu-rani-1742836498649.cluster-23wp6v3w4jhzmwncf7crloq3kw.cloudworkstations.dev",
"https://5173-idx-pfe-edu-rani-1742836498649.cluster-23wp6v3w4jhzmwncf7crloq3kw.cloudworkstations.dev"
],
credentials: true,
optionsSuccessStatus: 204
})
);