From af9fb0ca7e32b4bd2ec6f889354cf62e7ca4c987 Mon Sep 17 00:00:00 2001 From: Huabing Zhao Date: Mon, 8 Jul 2024 17:05:26 +0800 Subject: [PATCH] fix basic auth doc (#3786) Signed-off-by: Huabing Zhao --- site/content/en/latest/tasks/security/basic-auth.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/en/latest/tasks/security/basic-auth.md b/site/content/en/latest/tasks/security/basic-auth.md index 04559a8d2bc..956963b6da5 100644 --- a/site/content/en/latest/tasks/security/basic-auth.md +++ b/site/content/en/latest/tasks/security/basic-auth.md @@ -161,7 +161,7 @@ echo $GATEWAY_HOST Send a request to the backend service without `Authentication` header: ```shell -curl -v -H "Host: www.example.com" "http://${GATEWAY_HOST}/" +curl -kv -H "Host: www.example.com" "https://${GATEWAY_HOST}/" ``` You should see `401 Unauthorized` in the response, indicating that the request is not allowed without authentication.