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">
  <head>
    <link rel="stylesheet" href="https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/dist/Chatroom.css" />
  </head>
  <body>
    <div class="chat-container"></div>
  
    <script src="https://npm-scalableminds.s3.eu-central-1.amazonaws.com/@scalableminds/chatroom@master/dist/Chatroom.js"/></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"
      });
      chatroom.openChat();
    </script>
  </body>
</html>

credentials.yml

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

endpoints.yml

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

error

frontend

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