Skip to content

Commit

Permalink
Change Galago domain (#1712)
Browse files Browse the repository at this point in the history
* Handle CORS for new Galago domain

* Change frontend routing to new Galago domain
  • Loading branch information
vincent-czi authored Oct 29, 2024
1 parent 244c598 commit 597e7da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions src/backend/aspen/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,12 @@ def get_allowed_origins() -> List[str]:
Gets list of all allowed origins for cross origin requests. This is pretty
simple right now: we only serve the FE of our app and Galago with content
from our BE, so that's all this needs to cover. For ease, the Galago URLs
are just hardcoded. If we ever need to start handling a lot more CORS
requests or the Galago URLs become more dynamic, we should reevaluate
current process.
from our BE, so that's all this needs to cover. For ease, the Galago URL is
just hardcoded. If we ever need to start handling a lot more CORS requests,
we should reevaluate the current process.
"""
allowed_origins = [
"https://galago.czgenepi.org",
"https://galago-labs.czgenepi.org",
"https://galago.cziscience.com",
]
frontend_url = os.getenv("FRONTEND_URL")
if frontend_url:
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/common/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export enum ROUTES {
CZI = "https://chanzuckerberg.com/",
DATA = "/data",
DATA_SAMPLES = "/data/samples",
GALAGO = "https://galago.czgenepi.org/",
GALAGO = "https://galago.cziscience.com/",
GISAID = "https://www.gisaid.org/",
GITHUB = "https://github.com/chanzuckerberg/czgenepi/",
GROUP = "/group",
Expand Down

0 comments on commit 597e7da

Please sign in to comment.