当我尝试使用Postman发帖时,它工作得很好。现在,当我尝试使用在另一台机器上运行的Angular2应用程序进行发布时,我得到了一个错误消息"Response with status: 0 for URL: null“。OptionLayout" : "Vertical", });
var url = 'http://
更新4:当我使用"yarn start“而不是pm2运行Node应用程序时,我可以加载一个空数组作为返回,而不是404Not Found,仍然是CORS错误,但没有404。我很迷惑X-x
更新2:我现在在网络选项卡中看到,在CORS错误返回"404 Not Found“后,我认为问题可能出在我的nginx配置中。我收到了这个错误(index):1 Access to XMLHttpRequest at 'https://api</
我在前端使用Angular和C#作为后端,当我试图编辑字段并保存它时,我得到了这个错误:
Access to XMLHttpRequest at 'http://192.168.220.14:81/api/registry' from origin 'http://artc.tj' has been blocked by CORS policy: No 'Access-Control-Allow-