Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cookie session timestamp validation #387

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
1.9.45
* FIX: Fix not working cookie session timestamps validation introduced with 1.9.43 in
when localhost is blocked or takes a long time to resolve

1.9.44
* FIX: Fix not working cookie session timestamps validation introduced with 1.9.43 in
Expand Down
2 changes: 1 addition & 1 deletion share/server/core/classes/CoreLogonMultisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ private function checkAuthCookie($cookieName) {
// Check session periods validity
$site = getenv('OMD_SITE');
$port = $_SERVER['SERVER_PORT'];
$url = "http://localhost:$port/$site/check_mk/api/1.0/version";
$url = "http://127.0.0.1:$port/$site/check_mk/api/1.0/version";

$headers = [
'Content-type: application/json',
Expand Down
Loading