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

Hi!

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="http://0.0.0.0:5005/", if I adjust it on the server to data-websocket-url="http://xx.xx.xxx.xxx:5005/" or alternatively data-websocket-url="http://xx.xx.xxx.xxx/" I am getting a cors error. Can anyone point me to what I have to change?

My Rasa credentials.yml:

rest:

socketio:
  user_message_evt: user_uttered
  bot_message_evt: bot_uttered
  session_persistence: false

rasa:
  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?