PUT Requests not working

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 
  })
);

I am getting same problem on delete method . Somehow my delete preflight is being redirected . I have the same configuration as you . so were you able to solve the issue ?

unfortunately i could not