Skip to content

fix(website): genome viewer tries to fetch data from wrong location#1128

Merged
fengelniederhammer merged 1 commit into
mainfrom
1083-genome-viewer-tries-to-fetch-data-from-wrong-location
Apr 2, 2026
Merged

fix(website): genome viewer tries to fetch data from wrong location#1128
fengelniederhammer merged 1 commit into
mainfrom
1083-genome-viewer-tries-to-fetch-data-from-wrong-location

Conversation

@fengelniederhammer

Copy link
Copy Markdown
Contributor

resolves #1083

Summary

See https://docs.astro.build/en/reference/configuration-reference/#securityalloweddomains

Setting security.allowedDomains fixes the issues together with https://github.com/GenSpectrum/servers/pull/473 (we didn't set X-Forwarded-Host in the proxy config before). I think it makes sense to hardcode the value to the two hosts that we server the dashboards at.

Screenshot

PR Checklist

- [ ] All necessary documentation has been adapted.
- [ ] The implemented feature is covered by an appropriate test.

@vercel

vercel Bot commented Apr 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview, Comment Apr 1, 2026 10:26am

Request Review

@fengelniederhammer fengelniederhammer force-pushed the 1083-genome-viewer-tries-to-fetch-data-from-wrong-location branch from 11fb567 to 2bef7bb Compare April 1, 2026 10:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses issue #1083 where the genome viewer on genspectrum.org was attempting to fetch genome annotation data from https://localhost/... in production, by configuring Astro’s domain security settings so the app correctly trusts the externally served hostnames behind the proxy setup.

Changes:

  • Added security.allowedDomains to the Astro configuration.
  • Whitelisted the two intended deployment hosts: genspectrum.org and staging.genspectrum.org.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fengelniederhammer fengelniederhammer merged commit 5d4ce2a into main Apr 2, 2026
13 checks passed
@fengelniederhammer fengelniederhammer deleted the 1083-genome-viewer-tries-to-fetch-data-from-wrong-location branch April 2, 2026 06:31
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.

Genome viewer tries to fetch data from wrong location

3 participants