Deploying my Rasa-Web-Chat integration and my Rasa Chatbot on my server using Docker-Compose -- Cors error?


I am experiencing some issues deploying Rasa together with the rasa web widget on my server. Mind you, running the docker-compose locally works perfectly fine. Deploying the Rasa Server works great on the server. I can curl to it and get all responses. However, the webpage (it’s empty other than the code given in the doc. When running it locally, the web-widget works with the url data-websocket-url="", if I adjust it on the server to data-websocket-url="" or alternatively data-websocket-url="" I am getting a cors error. Can anyone point me to what I have to change?

My Rasa credentials.yml:


  user_message_evt: user_uttered
  bot_message_evt: bot_uttered
  session_persistence: false

  url: "http://localhost:5002/api"

(I didnt change it much other than adding the socketio as listed in the docs) Did I miss something with the credentials?