On Mon, Oct 17, 2016 at 05:33:24AM +0000, Vijayalakshmi Devi A M wrote:
> Our web application uses XMPP for chat. We are using ejabberd xmpp server .
> We have configured xmpp BOSH( http://xmpp.org/extensions/xep-0206.html ) via
> HAProxy. But sometimes haproxy is throwing error with Status Code:504 Gateway
> Time-out. Our application shows error as No 'Access-Control-Allow-Origin'
> header is present on the requested resource. Origin '. But the same request
> initially it works without any error. Can you please guide us on how to
> resolve this issue
It's not very clear, but at least from what I remember, BOSH uses long
connection polling, so if your haproxy timeout is smaller than the server's,
it's normal that unused connections ultimately time out and are logged as
504, and it should be irrelevant to the headers you're using.