mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
whiteListedDomains only on dev builds
This commit is contained in:
2
dist/.publish
vendored
2
dist/.publish
vendored
Submodule dist/.publish updated: ff837aca94...2703863ee9
@@ -4,9 +4,6 @@
|
|||||||
"identityUri": "/identity",
|
"identityUri": "/identity",
|
||||||
"iconsUri": "https://icons.bitwarden.com",
|
"iconsUri": "https://icons.bitwarden.com",
|
||||||
"stripeKey": "pk_test_KPoCfZXu7mznb9uSCPZ2JpTD",
|
"stripeKey": "pk_test_KPoCfZXu7mznb9uSCPZ2JpTD",
|
||||||
"braintreeKey": "sandbox_r72q8jq6_9pnxkwm75f87sdc2",
|
"braintreeKey": "sandbox_r72q8jq6_9pnxkwm75f87sdc2"
|
||||||
"whitelistDomains": [
|
|
||||||
"preview-vault.bitwarden.com"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,6 @@
|
|||||||
"identityUri": "/identity",
|
"identityUri": "/identity",
|
||||||
"iconsUri": "https://icons.bitwarden.com",
|
"iconsUri": "https://icons.bitwarden.com",
|
||||||
"stripeKey": "pk_live_bpN0P37nMxrMQkcaHXtAybJk",
|
"stripeKey": "pk_live_bpN0P37nMxrMQkcaHXtAybJk",
|
||||||
"braintreeKey": "production_qfbsv8kc_njj2zjtyngtjmbjd",
|
"braintreeKey": "production_qfbsv8kc_njj2zjtyngtjmbjd"
|
||||||
"whitelistDomains": [
|
|
||||||
"vault.bitwarden.com"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,6 @@
|
|||||||
"identityUri": "http://localhost:33656",
|
"identityUri": "http://localhost:33656",
|
||||||
"iconsUri": "https://icons.bitwarden.com",
|
"iconsUri": "https://icons.bitwarden.com",
|
||||||
"stripeKey": "pk_test_KPoCfZXu7mznb9uSCPZ2JpTD",
|
"stripeKey": "pk_test_KPoCfZXu7mznb9uSCPZ2JpTD",
|
||||||
"braintreeKey": "sandbox_r72q8jq6_9pnxkwm75f87sdc2",
|
"braintreeKey": "sandbox_r72q8jq6_9pnxkwm75f87sdc2"
|
||||||
"whitelistDomains": [
|
|
||||||
"localhost"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,11 +14,11 @@ angular
|
|||||||
$qProvider.errorOnUnhandledRejections(false);
|
$qProvider.errorOnUnhandledRejections(false);
|
||||||
$locationProvider.hashPrefix('');
|
$locationProvider.hashPrefix('');
|
||||||
|
|
||||||
if (appSettings.apiUri !== '/api' && appSettings.whitelistDomains && appSettings.whitelistDomains.length) {
|
// @if false
|
||||||
jwtOptionsProvider.config({
|
jwtOptionsProvider.config({
|
||||||
whiteListedDomains: appSettings.whitelistDomains
|
whiteListedDomains: ['localhost', 'api.bitwarden.com', 'vault.bitwarden.com']
|
||||||
});
|
});
|
||||||
}
|
// @endif
|
||||||
|
|
||||||
var refreshPromise;
|
var refreshPromise;
|
||||||
jwtInterceptorProvider.tokenGetter = /*@ngInject*/ function (options, tokenService, authService) {
|
jwtInterceptorProvider.tokenGetter = /*@ngInject*/ function (options, tokenService, authService) {
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
angular.module("bit")
|
angular.module("bit")
|
||||||
.constant("appSettings", {"apiUri":"/api","identityUri":"/identity","iconsUri":"https://icons.bitwarden.com","stripeKey":"pk_live_bpN0P37nMxrMQkcaHXtAybJk","braintreeKey":"production_qfbsv8kc_njj2zjtyngtjmbjd","whitelistDomains":["vault.bitwarden.com"],"selfHosted":false,"version":"1.21.0","environment":"Production"});
|
.constant("appSettings", {"apiUri":"/api","identityUri":"/identity","iconsUri":"https://icons.bitwarden.com","stripeKey":"pk_live_bpN0P37nMxrMQkcaHXtAybJk","braintreeKey":"production_qfbsv8kc_njj2zjtyngtjmbjd","selfHosted":false,"version":"1.21.0","environment":"Production"});
|
||||||
|
|||||||
Reference in New Issue
Block a user