Access to XMLHttpRequest at 'http://localhost:9000/api/contact' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
不是跨域的问题,因为nodejs搭建的服务已经处理了这个跨域。我也遇到了删除接口有问题
本地搭建的服务器的话可以试试这种写法:这个方法是用nodejs搭建的服务器