1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

whiteListedDomains only on dev builds

This commit is contained in:
Kyle Spearrin
2017-12-16 23:23:17 -05:00
parent a0f7ed68fb
commit 1d0b45e17d
6 changed files with 10 additions and 19 deletions

2
dist/.publish vendored

Submodule dist/.publish updated: ff837aca94...2703863ee9

View File

@@ -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"
]
} }
} }

View File

@@ -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"
]
} }
} }

View File

@@ -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"
]
} }
} }

View File

@@ -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) {

View File

@@ -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"});