← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1240282] Re: VNC console can not display in Dashboard due to browser blocking cross domain calls

 

[Expired for OpenStack Dashboard (Horizon) because there has been no
activity for 60 days.]

** Changed in: horizon
       Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1240282

Title:
  VNC console can not display in Dashboard due to browser blocking cross
  domain calls

Status in OpenStack Dashboard (Horizon):
  Expired

Bug description:
  VNC console fails to be displayed by browsers like IE and Chrome due to cross domain calls in Dashboard iframe. 
  Dashboard uses apache port 80 while vnc uses 6080.  Default security policy in browsers will forbid cross domain scripts from running. Users have to click 'show all content' in IE or 'load unsafe scripts' in Chrome to have vnc console properly displayed, or disable the security policy, which is not advised. 

  <p class='alert alert-info'>If console is not responding to keyboard input: click the grey status bar below. <a href="http://10.145.88.231:6080/vnc_auto.html?token=795e5dc0-51be-441c-bf54-5d53b7d65f5e&amp;title=test1(a3811ba3-d10b-482c-9275-3dbd5196c1ce)"  style="text-decoration: underline">Click here to show only console</a></p>
  <iframe id="console_embed" src="http://10.145.88.231:6080/vnc_auto.html?token=795e5dc0-51be-441c-bf54-5d53b7d65f5e&amp;title=test1(a3811ba3-d10b-482c-9275-3dbd5196c1ce)" style="width:100%;height:100%"></iframe>
  <script type="text/javascript">
     var fix_height = function() {
         $('iframe#console_embed').css({ height: $(document).height() + 'px' });
     };
     // there are two code paths to this particular block; handle them both
     if (typeof($) != 'undefined') {
         $(document).ready(fix_height);
     } else {
         addHorizonLoadEvent(fix_height);
     }
  </script>

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1240282/+subscriptions