aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/constants.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 05:19:26 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-22 05:19:26 +0800
commitc6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7 (patch)
treea439753c002f5c2656fdacc7b59c499042063bd5 /packages/instant/src/constants.ts
parent93672c01afd19f07daa89934fc8d29caefbec2f6 (diff)
downloaddexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.gz
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.bz2
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.lz
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.xz
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.tar.zst
dexon-sol-tools-c6ae7b8d3f720f637db2d5ec9abee14cc00fb7a7.zip
Host whitelist so we don't get errors from embedded site
Diffstat (limited to 'packages/instant/src/constants.ts')
-rw-r--r--packages/instant/src/constants.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/instant/src/constants.ts b/packages/instant/src/constants.ts
index dfa7520f8..eb785bc2b 100644
--- a/packages/instant/src/constants.ts
+++ b/packages/instant/src/constants.ts
@@ -20,6 +20,15 @@ export const HEAP_ANALYTICS_ID = process.env.HEAP_ANALYTICS_ID;
export const COINBASE_API_BASE_URL = 'https://api.coinbase.com/v2';
export const PROGRESS_STALL_AT_WIDTH = '95%';
export const PROGRESS_FINISH_ANIMATION_TIME_MS = 200;
+export const EMBEDDED_DOMAINS = [
+ '0x-instant-staging.s3-website-us-east-1.amazonaws.com',
+ '0x-instant-dogfood.s3-website-us-east-1.amazonaws.com',
+ 'localhost',
+ '127.0.0.1',
+ '0.0.0.0',
+ 'unpkg.com',
+ 'jsdelivr.com',
+];
export const ROLLBAR_CLIENT_TOKEN = process.env.ROLLBAR_CLIENT_TOKEN;
export const INSTANT_ENVIRONMENT = process.env.INSTANT_ENVIRONMENT as
| 'dogfood'