diff --git a/api/app.py b/api/app.py index 36d2b69b3..fd7152be0 100644 --- a/api/app.py +++ b/api/app.py @@ -92,6 +92,7 @@ async def or_middleware(request: Request, call_next): if now > 2: now = round(now, 2) logging.warning(f"Execution time: {now} s for {request.method}: {request.url.path}") + response.headers["x-robots-tag"] = 'noindex, nofollow' return response diff --git a/ee/api/app.py b/ee/api/app.py index 27aa9b70a..3b1773cb4 100644 --- a/ee/api/app.py +++ b/ee/api/app.py @@ -110,6 +110,7 @@ async def or_middleware(request: Request, call_next): if now > 2: now = round(now, 2) logging.warning(f"Execution time: {now} s for {request.method}: {request.url.path}") + response.headers["x-robots-tag"] = 'noindex, nofollow' return response