Skip to content

[6.x] bootstrap ui in script file rather than inline (#15904)#16541

Merged
epixa merged 1 commit intoelastic:6.xfrom
epixa:backport/6.x/pr-15904
Feb 5, 2018
Merged

[6.x] bootstrap ui in script file rather than inline (#15904)#16541
epixa merged 1 commit intoelastic:6.xfrom
epixa:backport/6.x/pr-15904

Conversation

@epixa
Copy link
Contributor

@epixa epixa commented Feb 5, 2018

Backports the following commits to 6.x:

* bootstrap ui in script file rather than inline

There's no good reason to bootstrap the UI within the browser using an
inline script tag rather than a separate dynamically created bootstrap
script.

Having this bootstrapping logic in its own file allows us to cache this
separately from the main HTML payload, and it is required if we want to
disable inline scripts entirely.

* cleanup from review 1

* fix status page bootstrap

* do not require auth for app bootstrap files

We do not require auth for the rest of our static JS files, and this
file should not be treated differently than those. That this file is
created dynamically rather than pulled directly from the file system
is just an implementation detail.
@epixa epixa added the backport This PR is a backport of another PR label Feb 5, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@epixa epixa merged commit e9d95b8 into elastic:6.x Feb 5, 2018
@epixa epixa deleted the backport/6.x/pr-15904 branch February 5, 2018 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants