microsoft / microsoft/BotFramework-WebChat
Accessing mockbot token API blocked by CORS policy in "clear-after-idle" sample
Open
@compulim is already working on this.
Since May 24, 2021.
bug
ExemptFromDailyDRIReport
- Dominant language
- HTML
- Stars
- 1.8k
- Forks
- 1.6k
- Avg merge
- 22h 58m
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.