POST, GET are fine but its just DELETE Method is always be blocked by CORS any solution about this?
This is for my CORS setup in Server:
Try this code
app.use(cors({origin : "http://localhost:3001",methods : ["GET","POST","PUT","DELETE"],optionsSuccessStatus: 200}));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.