Skip to content

Commit 6b74589

Browse files
author
christopherholland-workday
committed
Enforce https in URL's used by customers
1 parent fa9b051 commit 6b74589

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/server/src/enterprise/utils/url.util.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ export function getSecureAppUrl(path?: string): string {
2323
}
2424

2525
const isLocalhost =
26-
urlObj.hostname === 'localhost' ||
27-
urlObj.hostname === '127.0.0.1' ||
28-
urlObj.hostname === '[::1]' ||
29-
urlObj.hostname === '0.0.0.0'
26+
urlObj.hostname === 'localhost' || urlObj.hostname === '127.0.0.1' || urlObj.hostname === '[::1]' || urlObj.hostname === '0.0.0.0'
3027

3128
// If URL is HTTP and NOT localhost, convert to HTTPS for security.
3229
// Keep HTTP for localhost/development URLs to avoid issues with self-signed certs.

0 commit comments

Comments
 (0)