Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Feb 5, 2018

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 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants