我正在尝试使用Bot框架的直线API以及Angular.js。但是,从Angular发出的请求会在我的浏览器中抛出Cross Origin错误。
我需要知道我是否做错了什么。如果是这样的话,我会把代码贴出来的。
所以,Bot框架直线支持跨原点请求吗?
您是否尝试过在您的节点api中添加cors支持?
https://www.npmjs.com/package/corsvar cors = require('cors');
app.use(cors());
将withCredentials:false
添加到我的请求后,它工作了。