CORS issue when call "disconnect" method from Strophe.js
we are facing an issue with Strophe.js library
everything works great, but when we call a disconnect method -
it causes a CORS error:
XMLHttpRequest cannot load https://chat.domain.com:8081/. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. The response had HTTP status code 502.
We use Tigase 5.2.0
Is there anything we should setup?
Added by Wojciech Kapcia about 4 years ago
Can you verify that this header in response is present in all other cases and in fact missing while disconnecting? Can you check tigase logs (you would need to enable debug for at least @--debug=server.bosh@) for presence/absence of this header in responses?