diff options
author | Ed tanous <ed@tanous.net> | 2018-04-22 10:53:28 -0700 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-04-16 18:54:29 +0000 |
commit | e9211cb375a604b1e6dce36e7ec070a0ba1b5c5a (patch) | |
tree | 2dab35c3729360fcd5bbc0a5879892c234b4a869 /webpack.config.js | |
parent | 4733a11b42fca6013e3957bf0e345d0cea086d96 (diff) | |
download | phosphor-webui-e9211cb375a604b1e6dce36e7ec070a0ba1b5c5a.tar.gz phosphor-webui-e9211cb375a604b1e6dce36e7ec070a0ba1b5c5a.zip |
Implement KVM in webui
This patchset adds the infrastructure to allow KVM sessions
through the webui. A websocket capable VNC/RFB connection
on the BMC is needed for KVM sessions.
To access, navigate to Server control -> KVM.
Tested: Ran obmc-ikvm on the BMC, added a KVM Handler to
Phosphor Rest Server, and was able to establish a
KVM session in the webui on a Witherspoon.
Change-Id: I7dda5bec41d270ae8d0913697714d4df4ec3a257
Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index 91cbea8..6c8667c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -113,7 +113,11 @@ module.exports = (env, options) => { 'base-uri': '\'self\'', 'object-src': '\'none\'', 'script-src': ['\'self\''], - 'style-src': ['\'self\''] + 'style-src': ['\'self\''], + // KVM requires image buffers from data: payloads, so allow that in + // img-src + // https://stackoverflow.com/questions/18447970/content-security-policy-data-not-working-for-base64-images-in-chrome-28 + 'img-src': ['\'self\'', 'data:'], }), new MiniCssExtractPlugin(), |