-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webchat JS code does not work on IE #1662
Comments
This is the error that I get on the web developer console: ....... |
Hi @raghukrishnamoorthy, In case of ES5 browsers like IE11, you need to use Web Chat CDN with ES5 polyfills (webchat-es5.js). Sample - Getting started with Web Chat CDN with ES5 polyfills For example, you should rewrite such us the following code, so I guess it works. + <script src="https://cdn.botframework.com/botframework-webchat/master/webchat-es5.js"></script>
- <script src="https://cdn.botframework.com/botframework-webchat/master/webchat.js"></script> |
After replacing the new cdn link for es5 i'm getting a "Refused to set unsafe header "User-Agent" error on chrome on every message sent to the bot. Also, the CSS classes for all the controls are completely different from the CSS classes that you get when you use the non es5 cdn link. What do i do now? |
Also the es5 cdn has a missing feature that is present in the latest/webchat.js cdn link. It has new directLine method signature with conversation Id and secret/token as parameters instead of just secret/token. Which CDN do i use now? |
@raghukrishnamoorthy could you share both CDN links that you were using? Regarding your comment about the CSS classes, I'm not sure what would cause this. Is it possible you used @compulim could you weigh in on the User-Agent errors? |
Sorry for the formatting mess. I'm on mobile. |
Thanks @raghukrishnamoorthy.
Regarding your comment quoted above, I believe this has to do with using Latest reflects our most recent official release (4.2), and does not include our most recent changes. If you are in need of those changes immediately, you are welcome to use this CDN: https://cdn.botframework.com/botframework-webchat/master/webchat-es5.js. Once we release 4.3, you are welcome to switch back to latest if you'd like. When you have the chance, could you share a screencap of the differences in CSS classes between es5 and non-es5 link? I'm hoping this will help me figure out what's going on there. |
Regarding the User-Agent issue, this is a bug in the DirectLine JS microsoft/BotFramework-DirectLineJS#152 and will be resolved in the |
Any idea on when this merge might happen? |
#1676 was merged in a few days ago and |
@corinagum Fantastic. Thank you. |
I'm using the sample code from the Readme page with the secret for my bot in my web page. works fine on chrome and firefox. In IE, I get a Promise related error and the bot does not load.
The text was updated successfully, but these errors were encountered: