basic authentication
This commit is contained in:
parent
3826afd3bf
commit
c4af929d7a
@ -39,8 +39,9 @@ handlers::handlers(mgmt_app_config *config, httplib::Server *server)
|
||||
}
|
||||
|
||||
res.status = http_error_codes::unauthorized;
|
||||
res.headers["WWW-Authenticate"] =
|
||||
R"(Basic realm="Repertory Management Portal", charset="UTF-8")";
|
||||
res.set_header(
|
||||
"WWW-Authenticate",
|
||||
R"(Basic realm="Repertory Management Portal", charset="UTF-8")");
|
||||
return httplib::Server::HandlerResponse::Handled;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user