BotFramework-WebChat
BotFramework-WebChat copied to clipboard
Accessing mockbot token API blocked by CORS policy in "clear-after-idle" sample
Version
v4.13.0
NPM package
Describe the bug
Running the h.clear-after-idle sample generates an error when the host application attempts to access mockbot's token API. The host application is blocked do to CORS policy.
Steps to reproduce
- Clone repo and install packages
- Run sample
- Observe error in browser
Expected behavior
The host app should be able to request a token from mockbot's API.
@compulim ~I don't think that format of IP address is added to trustedOrigins
in MockBot. Are you interested in adding it?~
I was able to repro locally without the unusual origin, so I guess that's not it.