diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2019-08-27 13:03:14 -0700 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2019-09-04 20:06:58 +0000 |
commit | 0824e49e0f91b1d4ff6d07ec81927fb410ccd29e (patch) | |
tree | 547b211f3920c7b9f068b71dcbf428b2c95d869e /webpack.config.js | |
parent | 0c1e09e60f145b12ed17421b606c443d90da1324 (diff) | |
download | phosphor-webui-0824e49e0f91b1d4ff6d07ec81927fb410ccd29e.tar.gz phosphor-webui-0824e49e0f91b1d4ff6d07ec81927fb410ccd29e.zip |
Add 'wss:' to connect-src directive in CSP
This will fix Safari console errors for WebSocket connections.
This fix is dependent on
https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/24610
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I54987124037c206773bbc4ee690f854bfae8fa19
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index 28576d5..71b029e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -136,7 +136,7 @@ module.exports = (env, options) => { 'object-src': '\'none\'', 'script-src': ['\'self\''], 'style-src': ['\'self\''], - 'connect-src': ['\'self\''], + 'connect-src': ['\'self\'', 'wss:'], // 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 |