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

set basic auth in ajax headers #3184

Merged
merged 2 commits into from
Jul 4, 2015
Merged

Conversation

jipperinbham
Copy link
Contributor

The newly released UI will accept a username and password and even store it in local storage but it currently fails to set the Basic Authentication headers with the Ajax request.

This change will always set the headers in the calls to connectionString().

@jipperinbham
Copy link
Contributor Author

@toddboom I've added one addition to this change based on #3195 and also built the statik.go file.

@@ -8,7 +8,7 @@ var currentlySelectedDatabase = null;

// connection settings for the server, with sensible defaults
var connectionSettings = {
hostname: "localhost",
hostname: (window.location.hostname ? window.location.hostname: "localhost"),
port: "8086",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could pull the port here as well?

@toddboom
Copy link
Contributor

toddboom commented Jul 4, 2015

@jipperinbham this looks awesome, thanks!

toddboom added a commit that referenced this pull request Jul 4, 2015
Set basic auth for admin interface in ajax headers
@toddboom toddboom merged commit 212430e into influxdata:master Jul 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants