microsoft / microsoft/BotFramework-WebChat

Accessing mockbot token API blocked by CORS policy in "clear-after-idle" sample

Open
#3,910 1 comment 0 reactions 1 assignee View on GitHub

@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.

image

Steps to reproduce

  1. Clone repo and install packages
  2. Run sample
  3. Observe error in browser

Expected behavior

The host app should be able to request a token from mockbot's API.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.