diff --git a/App/functions/report-python-cloud-run/main.py b/App/functions/report-python-cloud-run/main.py index e8b2038fa..2d53e4011 100644 --- a/App/functions/report-python-cloud-run/main.py +++ b/App/functions/report-python-cloud-run/main.py @@ -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"