Issue with rasa and react, bot response not returned in chat

I am running two servers “python -m http.server 8000” and “python -m rasa run --m ./models --endpoints endpoints.yml --port 5005 -vv --enable-api”. When I open “localhost:8000” the chat opens but when i type a message, there is no bot response. Below I have given a screenshot of the error, can someone help me with this.

index.html : this file is present in a seperate folder outside of the rasa chatbot folder

<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href="" />
    <div class="chat-container"></div>
    <script src=""/></script>
    <script type="text/javascript">
      var chatroom = new window.Chatroom({
        host: "http://localhost:5005",
        title: "Chat with AVA",
        container: document.querySelector(".chat-container"),
        welcomeMessage: "Hi, I am AVA. How may I help you?",
        speechRecognition: "en-US",
        voiceLang: "en-US"


  # you don't need to provide anything here - this channel doesn't
  # require any credentials


   url: "http://localhost:5005/webhook"



Got it fixed , had to add ‘cors’ while running the server. :v:

Hi Can you please share steps to execute this . even I am also facing same issue here.