Rev 1344 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1344 | Rev 1373 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | /** |
37 | /** |
38 | * @return string |
38 | * @return string |
39 | * @throws OIDplusException |
39 | * @throws OIDplusException |
40 | */ |
40 | */ |
41 | private function getCookieDomain(): string { |
41 | private function getCookieDomain(): string { |
42 | $domain = OIDplus::baseConfig()->getValue('COOKIE_DOMAIN', '(auto)'); |
42 | $domain = OIDplus::baseConfig()->getValue('COOKIE_DOMAIN', ''); |
43 | if ($domain === '(auto)') { |
43 | if ($domain === '(auto)') { |
44 | if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { |
44 | if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { |
45 | // If OIDplus is called through a Reverse Proxy, we must make sure that the cookies are working. |
45 | // If OIDplus is called through a Reverse Proxy, we must make sure that the cookies are working. |
46 | $domain = $_SERVER['HTTP_X_FORWARDED_HOST']; |
46 | $domain = $_SERVER['HTTP_X_FORWARDED_HOST']; |
47 | } else { |
47 | } else { |