Does Bot Framework Direct line support CORS?

777 Views Asked by At

I'm trying to use Bot Framework's Direct Line API along with Angular.js. However, the request sent from Angular throws the Cross Origin error in my browser.

I need to know if I'm doing something wrong. If thats the case, I'll post the code.

So, Does Bot Framework Direct line support Cross Origin requests?

2

There are 2 best solutions below

0
Dushyant Bangal On BEST ANSWER

It worked after adding withCredentials:false to my request.

2
Erlend Westbye On

Have you tried adding cors support to your node api?

https://www.npmjs.com/package/cors

var cors = require('cors');
app.use(cors());