[CLOSED] MessageBus thru iFrame via hosted Domain

  1. #1

    [CLOSED] MessageBus thru iFrame via hosted Domain

    hi : We have the MessageBus working well - IF - everything is hosted under one domain.
    For Example : http://www.Child.com - works great - if all MessageBus code runs under this one domain.
    --
    We have error when, for example, there is a hosted service on a different domain:
    For Example, below: Parent.com , hosts Child.com via iFrame:
    http://www.Parent.com
    -- http://www.Child.com

    In example above, when the URL we see in address bar = http://www.Parent.com, then the MessageBus running on the Child.com code fails.
    I hope this makes sense: Essentially, we need a way to use MessageBus, when the Domain URL (in the address bar) i.e. Domain of parent, is different than domain of Child in iFrame where MessageBus is running.
    Last edited by Daniil; Dec 18, 2013 at 2:53 AM. Reason: [CLOSED]
  2. #2
    It is browser security restriction is called "same origin policy" (see http://en.wikipedia.org/wiki/Same-origin_policy)
    You can try to add "Access-Control-Allow-Origin" header to the required appilcation (or for particular page only) to deactivate that security mode (not sure if it will work always)
    Please see http://stackoverflow.com/a/18219077/1475939

    Links which can be interesting for you
    http://stackoverflow.com/questions/1...ing-javascript
    http://stackoverflow.com/questions/4...iframe-content

Similar Threads

  1. MessageBus and OnError event
    By Spamme in forum 2.x Help
    Replies: 1
    Last Post: Dec 03, 2013, 10:13 AM
  2. [CLOSED] MessageBus
    By Akpenob in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 28, 2013, 5:09 PM
  3. [CLOSED] MessageBus Publish Parameters
    By vgvallee in forum 2.x Legacy Premium Help
    Replies: 19
    Last Post: Mar 05, 2013, 7:34 PM
  4. [CLOSED] Messagebus form iframe in IE8 keeps on firing
    By CarpFisher in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jul 26, 2012, 12:03 PM
  5. [CLOSED] MessageBus
    By FAS in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 02, 2012, 4:33 AM

Posting Permissions