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?

有帮助吗?

解决方案

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]

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top