open-consul/ui/packages/consul-ui/lib
John Cowen 62a9dffcae
ui: CSP Improvements (#9847)
* Configure ember-auto-import so we can use a stricter CSP

* Create a fake filesystem using JSON to avoid inline scripts in index

We used to have inline scripts in index.html in order to support embers
filepath fingerprinting and our configurable rootURL.

Instead of using inline scripts we use application/json plus a JSON blob
to create a fake filesystem JSON blob/hash/map to hold all of the
rootURL'ed fingerprinted file paths which we can then retrive later in
non-inline scripts.

We move our inlined polyfills script into the init.js external script,
and we move the CodeMirror syntax highlighting configuration inline
script into the main app itself - into the already existing CodeMirror
initializer (this has been moved so we can lookup a service located
document using ember's DI container)

* Set a strict-ish CSP policy during development
2021-03-17 10:46:21 +00:00
..
block-slots ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
colocated-components ui: Move linting to the `node:test` script (#9385) 2020-12-14 15:28:35 +00:00
commands ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00
startup ui: CSP Improvements (#9847) 2021-03-17 10:46:21 +00:00
.eslintrc.js ui: Move to Workspaced Structure (#8994) 2020-10-21 15:23:16 +01:00