mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
enforce loading urls to https only
This commit is contained in:
@@ -306,7 +306,7 @@ function createWin(urlFromConfig) {
|
||||
// add https protocol if none found.
|
||||
let parsedUrl = nodeURL.parse(urlFromConfig);
|
||||
|
||||
if (!parsedUrl.protocol) {
|
||||
if (!parsedUrl.protocol || parsedUrl.protocol !== 'https') {
|
||||
parsedUrl.protocol = 'https:';
|
||||
parsedUrl.slashes = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user