summaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2019-08-13 16:35:16 -0500
committerGunnar Mills <gmills@us.ibm.com>2019-08-22 01:39:14 +0000
commit0433e005e01732e73e93b167a7a3e4d862f28e28 (patch)
treeb9de3fc161d895d0aab711a89caad91cf6f50d4e /webpack.config.js
parente368108fc4fb3777ff02089f81b551d9735b393f (diff)
downloadphosphor-webui-0433e005e01732e73e93b167a7a3e4d862f28e28.tar.gz
phosphor-webui-0433e005e01732e73e93b167a7a3e4d862f28e28.zip
Fix app header template rendering in Safari
Add 'connect-src' directive to Content Security Policy to allow WebSocket connection. Added additional error handling when Websocket connection refused. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I83cfaa0b314099aea57ee7f2be75a0658462b2a9
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/webpack.config.js b/webpack.config.js
index be579cb..28576d5 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -136,6 +136,7 @@ module.exports = (env, options) => {
'object-src': '\'none\'',
'script-src': ['\'self\''],
'style-src': ['\'self\''],
+ 'connect-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
OpenPOWER on IntegriCloud