diff options
-rw-r--r-- | http/http_connection.hpp | 2 | ||||
-rw-r--r-- | include/authorization.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/http/http_connection.hpp b/http/http_connection.hpp index c296782b59..b1693092d0 100644 --- a/http/http_connection.hpp +++ b/http/http_connection.hpp @@ -355,7 +355,7 @@ class Connection : return; } - if (!crow::authorization::isOnWhitelist(req->url, req->method()) && + if (!crow::authorization::isOnAllowlist(req->url, req->method()) && thisReq.session == nullptr) { BMCWEB_LOG_WARNING << "[AuthMiddleware] authorization failed"; diff --git a/include/authorization.hpp b/include/authorization.hpp index 1c51414638..4869554d13 100644 --- a/include/authorization.hpp +++ b/include/authorization.hpp @@ -223,7 +223,7 @@ static std::shared_ptr<persistent_data::UserSession> #endif // checks if request can be forwarded without authentication -static bool isOnWhitelist(std::string_view url, boost::beast::http::verb method) +static bool isOnAllowlist(std::string_view url, boost::beast::http::verb method) { if (boost::beast::http::verb::get == method) { |