Problem with xmpp http-bind

I set up jitsimeet with all components running on the same host jitsi.mydomain .
Nevertheless I get this problem when trying to connect via browser, that i am disconnected every 10-30 seconds and that audio and video are not working.

Taking a look at the error console i found these:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://jitsi.mydomain:4444/http-bind?room=blankadultseruptultimately. (Reason: header ‘content-type’ is not allowed according to header ‘Access-Control-Allow-Headers’ from CORS preflight response).
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://jitsi.mydomain:4444/http-bind?room=blankadultseruptultimately. (Reason: CORS request did not succeed).

This appears to be a similar problem to thread 15729 or thread 12446/4 with the difference that i have all services running on the same host.

Why is Same Origin Policy an issue at all? I mean sure i am requesting http-bind coming from another host, but isnt it prosody XMPP, jicofo and jvb that count here?

The logs in /var/log/prosody and /var/log/jitsi don’t really show anything interesting as far as i can tell. But if you think it helps i am happy to provide them here.

Does anyone of you have an idea of

  1. Why the problem is occurring
  2. How to fix it?