lookup> WWW-Authenticate

WWW-Authenticate

consists of at least one challenge that indicates the authentication scheme(s) and parameters applicable to the effective request URI.

响应头RFC7235#4.4
NameWWW-Authenticate
Type响应头
SpecificationRFC7235#4.4

consists of at least one challenge that indicates the authentication scheme(s) and parameters applicable to the effective request URI.

WWW-Authenticate: Basic realm="api"

RFC7235#4.4

What does the WWW-Authenticate header do?

consists of at least one challenge that indicates the authentication scheme(s) and parameters applicable to the effective request URI.

Is WWW-Authenticate a request or response header?

It is classified as a response header and can appear in requests or responses depending on context.

Related status codes

Related headers