BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

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

Open stevkan opened this issue 3 years ago • 1 comments

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.

stevkan avatar May 24 '21 20:05 stevkan

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

corinagum avatar May 24 '21 20:05 corinagum