you are able to pass option to cors middleware , I hope this will help
var options = {
"origin": "*",
"methods": "GET,HEAD,PUT,PATCH,POST,DELETE",
"preflightContinue": false,
"optionsSuccessStatus": 204
}
app.use(cors(options));
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…