From c76cdb4bb0dfcda81a7610e342d47b38b40568fd Mon Sep 17 00:00:00 2001 From: Chris Cassano Date: Tue, 13 Feb 2024 16:18:49 -0800 Subject: [PATCH] fix cors proxy url --- packages/crypto/src/lib/crypto.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/crypto/src/lib/crypto.ts b/packages/crypto/src/lib/crypto.ts index c155f90da1..03d91447cb 100644 --- a/packages/crypto/src/lib/crypto.ts +++ b/packages/crypto/src/lib/crypto.ts @@ -27,8 +27,7 @@ if (!globalThis.wasmExports) { if (!globalThis.jestTesting) { log( - `✅ [BLS SDK] wasmExports loaded. ${ - Object.keys(exports).length + `✅ [BLS SDK] wasmExports loaded. ${Object.keys(exports).length } functions available. Run 'wasmExports' in the console to see them.` ); } @@ -50,8 +49,7 @@ if (!globalThis.wasmECDSA) { if (!globalThis.jestTesting) { log( - `✅ [ECDSA SDK ${env}] wasmECDSA loaded. ${ - Object.keys(wasmECDSA).length + `✅ [ECDSA SDK ${env}] wasmECDSA loaded. ${Object.keys(wasmECDSA).length } functions available. Run 'wasmECDSA' in the console to see them.` ); } @@ -64,8 +62,7 @@ if (!globalThis.wasmSevSnpUtils) { if (!globalThis.jestTesting) { log( - `✅ [SEV SNP Utils SDK] wasmSevSnpUtils loaded. ${ - Object.keys(exports).length + `✅ [SEV SNP Utils SDK] wasmSevSnpUtils loaded. ${Object.keys(exports).length } functions available. Run 'wasmSevSnpUtils' in the console to see them.` ); } @@ -361,7 +358,7 @@ async function getAmdCert(url: string) { // unfortunately, until AMD enables CORS, we have to use a proxy when in the browser if (isBrowser()) { // CORS proxy url - url = `https://shielded-earth-13917-10ba15245911.herokuapp.com/${url}`; + url = `https://cors.litgateway.com/${url}`; } const response = await fetch(url); const arrayBuffer = await response.arrayBuffer();