Skip to content

Commit 8fd5451

Browse files
committed
Add dev.drone.hotosm.org to CORS
1 parent 6bac4c4 commit 8fd5451

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
sed -i 's|domain: "\.login\.hotosm\.org"|domain: ".hotosm.org"|g' hanko-config.yaml
129129
sed -i 's|domain: "\.dev\.login\.hotosm\.org"|domain: ".hotosm.org"|g' hanko-config.yaml
130130
# Add testlogin domains to all required sections
131-
for domain in "dev.portal.hotosm.org" "dronetm.testlogin.hotosm.org" "fair.testlogin.hotosm.org" "fair-dev.hotosm.org" "fair.hotosm.org" "umap.testlogin.hotosm.org" "umap-dev.hotosm.org" "export.testlogin.hotosm.org" "chatmap-dev.hotosm.org"; do
131+
for domain in "dev.portal.hotosm.org" "dev.drone.hotosm.org" "dronetm.testlogin.hotosm.org" "fair.testlogin.hotosm.org" "fair-dev.hotosm.org" "fair.hotosm.org" "umap.testlogin.hotosm.org" "umap-dev.hotosm.org" "export.testlogin.hotosm.org" "chatmap-dev.hotosm.org"; do
132132
# CORS allow_origins (check specifically in allow_origins section)
133133
if ! grep -A 10 'allow_origins:' hanko-config.yaml | grep -q "$domain"; then
134134
sed -i '/allow_origins:/a\ - "https://'"$domain"'"' hanko-config.yaml

backend/app/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ async def lifespan(app: FastAPI):
7272
"https://dronetm.hotosm.org",
7373
"https://drone.hotosm.org",
7474
"https://drone-dev.hotosm.org",
75+
"https://dev.drone.hotosm.org",
7576
],
7677
allow_credentials=True,
7778
allow_methods=["*"],

0 commit comments

Comments
 (0)