All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jae Hyun Yoo <jae.hyun.yoo@linux.intel.com>
To: xiuzhi <1450335857@qq.com>, openbmc <openbmc@lists.ozlabs.org>,
	ed <ed@tanous.net>, Eddie James <eajames@linux.vnet.ibm.com>
Subject: Re: Does obmc-ikvm work with bmcweb?
Date: Thu, 14 Mar 2019 10:53:15 -0700	[thread overview]
Message-ID: <fa618273-b2e8-3d53-9c28-91f01fd83c05@linux.intel.com> (raw)
In-Reply-To: <tencent_2EF1C4452C43ADF74A37DF04@qq.com>

Hi xiuzhi,

These are my repo information:
bmcweb: 9474b3788017bddd70e493e2b9b7674be30abc87
phosphor-webui: 511a2bbc5540fccb883b8d0005c2b387a23c9d05
                 Cherry picked 
https://gerrit.openbmc-project.xyz/#/c/openbmc/phosphor-webui/+/10268/
libvncserver: 3348a7e42e86dfb98dd7458ad29def476cf6096f
obmc-ikvm: 2bc661d34abd1fda92a9d2b256ed88ca0e90d09a

I can see working KVM through https://my.bmc.ip.addr/#/server-control/kvm

-Jae

On 3/13/2019 7:21 PM, xiuzhi wrote:
> Hi Jae, Ed,
>      I updated the source to openbmc latest version which uses bmcweb 
> instead of phosphor-rest.
>     It seemed that ikvm cannot work on bmcweb.
> The websit error:
> app.bundle.js:43 Refused to connect to 'wss://192.168.200.132/kvm/0' 
> because it violates the following Content Security Policy directive: 
> "default-src 'self'". Note that 'connect-src' was not explicitly set, so 
> 'default-src' is used as a fallback.
> Then I modify the bmcweb file include/security_headers_middleware.hpp L40:
>          // The KVM currently needs to load images from base64 encoded 
> strings.
>          // img-src 'self' data: is used to allow that.
>          // 
> https://stackoverflow.com/questions/18447970/content-security-policy-data-not-working-for-base64-images-in-chrome-28
>          res.addHeader("Content-Security-Policy",
>                        "default-src 'self'; img-src 'self' data:");
> to:
> policy-data-not-working-for-base64-images-in-chrome-28
>          res.addHeader("Content-Security-Policy",
>                        "script-src 'self'; img-src 'self' data:");
> 
> The website erro:
> "app.bundle.js:43 WebSocket on-error event"
> "WebSocket connection to 'wss://192.168.200.132/kvmws' failed: WebSocket 
> opening handshake timed out"
>    What is wrong with it?
>     Best,
> Xiuzhi
> 

  reply	other threads:[~2019-03-14 17:53 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-14  2:21 Does obmc-ikvm work with bmcweb? xiuzhi
2019-03-14 17:53 ` Jae Hyun Yoo [this message]
2019-03-15  7:18   ` xiuzhi
2019-03-15 17:11     ` Jae Hyun Yoo
2019-03-18  2:25       ` Lei YU
2019-03-18 17:21         ` Jae Hyun Yoo
2019-03-18 17:33           ` Jae Hyun Yoo
2019-03-19  3:05             ` xiuzhi
2019-03-19 18:04               ` Jae Hyun Yoo
2019-03-19  9:22             ` Lei YU
2019-03-19 18:09               ` Jae Hyun Yoo
2019-03-20  5:30                 ` Lei YU
2019-03-20 11:12                   ` Thaju
2019-03-20 17:43                     ` Jae Hyun Yoo
2019-03-21  7:02                       ` Lei YU
2019-03-21 16:19                         ` Jae Hyun Yoo
2019-03-21 16:27                           ` Thaju
2019-03-21 21:31                             ` Jae Hyun Yoo
2019-04-14  7:12                               ` xiuzhi
2019-04-15 19:26                                 ` Jae Hyun Yoo
2019-04-16  1:53                                   ` xiuzhi
2019-03-22  3:34                           ` Lei YU
2019-03-22 15:21                             ` Eddie James
2019-04-04  5:21     ` ikvm refresh failed on host screen 1680x1050 resolution xiuzhi
2019-04-04 17:16       ` Jae Hyun Yoo
2019-04-08  1:14         ` xiuzhi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fa618273-b2e8-3d53-9c28-91f01fd83c05@linux.intel.com \
    --to=jae.hyun.yoo@linux.intel.com \
    --cc=1450335857@qq.com \
    --cc=eajames@linux.vnet.ibm.com \
    --cc=ed@tanous.net \
    --cc=openbmc@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.