mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 22:20:51 +00:00
Set the 'WWW-Authenticate' header on 401 responses when basic
auth is enabled. This is required for basic auth to work with web browsers.
This commit is contained in:
@@ -297,6 +297,7 @@ func (s *APIServer) Run(_ []string) error {
|
||||
ReadWritePort: s.SecurePort,
|
||||
PublicAddress: net.IP(s.BindAddress),
|
||||
Authenticator: authenticator,
|
||||
SupportsBasicAuth: len(s.BasicAuthFile) > 0,
|
||||
Authorizer: authorizer,
|
||||
AdmissionControl: admissionController,
|
||||
DisableV1Beta3: disableV1beta3,
|
||||
|
Reference in New Issue
Block a user