Pergunta

My web server is running on localhost:8080 and my lightstreamer server is running on localhost:8989. But when I try to connect to lightstreamer, I am facing cross domain problem. I know that, this could be solved by having my web app in lightstream server. But is there any better solution to this?

Foi útil?

Solução

It depends on the version in use

On older version the setDomain method needs to be used.

On the latest version, by default, you should not have such issue. Anyway you may want to check http://goo.gl/kwREX to see how the server have to be configured depending on your deploy environment; by default is configured as accept-all.

[Disclaimer I work @ weswit, weswit makes Lightstreamer]

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top