刪除接口跨域
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.
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.
2020-03-17
舉報
2020-10-21
不是跨域的問題,因為nodejs搭建的服務已經處理了這個跨域。我也遇到了刪除接口有問題
2020-03-24
本地搭建的服務器的話可以試試這種寫法:這個方法是用nodejs搭建的服務器