Skip to content

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

Merged
squat merged 2 commits intothanos-io:masterfrom
onprem:fix-prefix-header
Sep 26, 2020
Merged

ui: Fix assets not loading when --web.prefix-header is used#3234
squat merged 2 commits intothanos-io:masterfrom
onprem:fix-prefix-header

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