Skip to content

Commit

Permalink
better detection
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Clerkx committed Dec 18, 2023
1 parent d186aea commit 31277a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion App/functions/report-python-cloud-run/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def return_report():

origin = request.headers.get("Referer")
print(f"detected origin: {origin}")
if not origin or origin == "/":
if not origin or "localhost" in origin:
stac_root = STAC_ROOT_DEFAULT
else:
stac_root = origin + "/STAC/catalog.json"
Expand Down

0 comments on commit 31277a6

Please sign in to comment.