Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2010
    Location
    London
    Posts
    3

    Lightbulb Allowing third party websites to access LS host

    My company runs a Lighstreamer host that publishes some public information - e.g, delayed FX prices.

    The LS host is: push.mycompany.com

    I would like websites hosted on other domains to be able to subscribe to these prices.

    Eg: www.affiliate-one.com/fx_prices.htm contains a table that should be populated by the prices from the LS server at push.mycompany.com

    Is this possible given the same-origin-policy restrictions implemented by browsers?

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    unfortunately you can't do that directly due to the cited same origin policy.

    In any case if the owner of affiliate-one.com registers on his own DNS a push.affiliate-one.com host that points to the IP of push.mycompany.com then he can use such push.affiliate-one.com as push server host so that the browsers will not complain.

    Is this an acceptable solution?

  3. #3
    Member
    Join Date
    Sep 2010
    Location
    London
    Posts
    3
    Thanks for confirming my suspicion.

    I assume that another option would be to have www.affiliate-one.com connect using the Flash client; and then ensure that push.mycompany.com has a permissive crossdomain.xml

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    yes of course you can use any other client library without such restrictions.

    Note that we have two flash oriented libraries (see http://www.lightstreamer.com/products.htm)

    the one called "SDK for Flash Client Development" uses the web client library as "network layer" so that the same origin policy still applies with it

    the other one, "SDK for Flex & AIR Client Development", uses the Flash player network layer so that you can configure the crossdomain.xml file to make it work across different domains.

    HTH

  5. #5
    Member
    Join Date
    Sep 2010
    Location
    London
    Posts
    3
    Thanks.

    One last question. When getting affiliate-one.com to set up push.affiliate-one.com pointing to push.mycompany.com; is a CNAME DNS entry sufficient?

    I ask, because we use round-robin DNS to load balance between two LS instances.

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    yes, to configure a CNAME record is enough

 

 

Similar Threads

  1. Replies: 0
    Last Post: February 17th, 2010, 06:10 PM
  2. Replies: 5
    Last Post: February 4th, 2010, 10:55 AM
  3. Setting domain, host and port on IE 6 & IE 7
    By Otake in forum Client SDKs
    Replies: 2
    Last Post: November 26th, 2009, 07:58 PM
  4. Opera 9 - 10 --> host file issue
    By Mone in forum Client SDKs
    Replies: 0
    Last Post: September 3rd, 2008, 10:26 AM
  5. SeekEngine &Push Host
    By ddhanis in forum Client SDKs
    Replies: 1
    Last Post: April 3rd, 2008, 04:08 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:24 PM.