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

ui: Fix assets not loading when --web.prefix-header is used #3234

Merged
merged 2 commits into from
Sep 26, 2020

Conversation

onprem
Copy link
Member

@onprem onprem commented Sep 26, 2020

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

This was caused by incorrect handling of the prefix value we got from the header. If the header had / as a suffix, we were still adding another / as a suffix to it, resulting in //prefix which translates to an external network request.

Verification

Tested it using a reverse proxy with prefix-stripping and the header X-Forwarded-Prefix set.

Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
@onprem onprem changed the title ui: Fix web.external-header not working ui: Fix assets not loading when --web.prefix-header is used Sep 26, 2020
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
@squat squat merged commit 933656b into thanos-io:master Sep 26, 2020
@amrmahdi
Copy link
Contributor

I verified this fix is working. @prmsrswt @bwplotka Can we release this change?

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.

[Query] UI served behind reverse proxy on a subpath broken on 0.15.0
3 participants