summaryrefslogtreecommitdiffstats
path: root/app/index.html
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2019-10-23 13:41:42 -0700
committerEd Tanous <ed.tanous@intel.com>2019-10-23 13:41:42 -0700
commitf6387628d22b525c20a16e4b928ceece0e03c92b (patch)
tree91546d2b003d5a9fecd7e0295399d57beb6468a4 /app/index.html
parent5e930c0aeb5b66df2c357be4d5c33d4828c2783f (diff)
downloadphosphor-webui-f6387628d22b525c20a16e4b928ceece0e03c92b.tar.gz
phosphor-webui-f6387628d22b525c20a16e4b928ceece0e03c92b.zip
Remove CSP protections from HTML
When I originally wrote CSP into the webui files, I intended to drop it into the HTML file so it could be removed from bmcweb. Unfortunately, that plan doesn't fly, as the CSP headers in bmcweb need to remain for non-html files. This normally wouldn't matter, but a number of people utilize BMCWEB_INSECURE_DISABLE_XSS_PREVENTION to run the webui locally and debug a new webui patch from a working BMC. This causes the CSP headers to conflict, and the browser to fail with a CSP error on connect-src when debugging locally. Removing the CSP section entirely from the webui resolves this, and doesn't change functionality at all, as it's still covered in bmcweb. Tested: Will verify on a real platform. Verified that building the webui locally with the above bmcweb flag allows the webui to launch correctly. Signed-off-by: Ed Tanous <ed.tanous@intel.com> Change-Id: I60e5011361ec3ce1930249a20cf34480beb48a7f
Diffstat (limited to 'app/index.html')
-rw-r--r--app/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/index.html b/app/index.html
index ab2b35b..8bcd4d6 100644
--- a/app/index.html
+++ b/app/index.html
@@ -2,7 +2,7 @@
<html ng-app="app" ng-csp lang="en">
<head>
- <meta http-equiv="Content-Security-Policy" content="%%CSP_CONTENT%%">
+ <meta http-equiv="Content-Security-Policy">
<meta charset="UTF-8">
<title>OpenBMC</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
OpenPOWER on IntegriCloud