locked
Azure Bot Channel Registration for IIS hosted Microsoft Bot Framework sdk chat bot not working RRS feed

  • Question

  • I have created a chat bot using the Microsoft Bot Framework sdk that is working when tested on localhost with the Bot Framework Emulator along with the Microsoft App Id and Secret. I then deployed the bot on a publicly accessible IIS web server with the proper SSL certificate and when navigating to its link the proper "Your bot is ready!" page appears showing that it is up and running.

    I then created a Bot Channels Registration on Azure with the messaging endpoint to my bot hosted on my IIS web server. However, when I try the "Test in Web Chat" the bot shows nothing and presents no error in the user interface. However looking at the browser's dev tools console, there are a couple of errors indicating that my bots URL is being blocked from the azure portal by CORS policy as shown below. Has anyone encountered this scenario and/or have possible solutions to this? Thank you!

    Access to XMLHttpRequest at ' from origin  has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. :1 Access to XMLHttpRequest at from origin has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource

    Thursday, June 18, 2020 9:30 PM

Answers

All replies