mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
update ssl check
This commit is contained in:
@@ -10,7 +10,7 @@ const BASE_URL_HOST = url.parse(BASE_URL).hostname;
|
||||
function isHTTP (req) {
|
||||
return ( // eslint-disable-line no-extra-parens
|
||||
req.header('x-forwarded-proto') &&
|
||||
req.header('x-forwarded-proto') !== 'https' &&
|
||||
req.header('x-forwarded-proto') === 'http' &&
|
||||
IS_PROD &&
|
||||
BASE_URL.indexOf('https') === 0
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user