mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-11 19:53:59 +02:00
Fix text language
This commit is contained in:
@@ -40,7 +40,7 @@ Now that we know what basic authentication is, the question is, how does it work
|
|||||||
### Step 1
|
### Step 1
|
||||||
When the browser first requests the server, the server tries to check the availability of the `Authorization` header in the request. Because it is the first request, no `Authorization` header is found in the request. So the server responds with the `401 Unauthorized` response code and also sends the `WWW-Authenticate` header with the value set to `Basic`, which tells the browser that it needs to trigger the basic authentication flow.
|
When the browser first requests the server, the server tries to check the availability of the `Authorization` header in the request. Because it is the first request, no `Authorization` header is found in the request. So the server responds with the `401 Unauthorized` response code and also sends the `WWW-Authenticate` header with the value set to `Basic`, which tells the browser that it needs to trigger the basic authentication flow.
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
401 Unauthorized
|
401 Unauthorized
|
||||||
WWW-Authenticate: Basic realm='user_pages'
|
WWW-Authenticate: Basic realm='user_pages'
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user