diff --git a/app/scripts/lib/security-provider-helpers.js b/app/scripts/lib/security-provider-helpers.js index b05c9a40b..986165cd9 100644 --- a/app/scripts/lib/security-provider-helpers.js +++ b/app/scripts/lib/security-provider-helpers.js @@ -51,17 +51,15 @@ export async function securityProviderCheck( } const response = await fetchWithTimeout( - 'https://eos9d7dmfj.execute-api.us-east-1.amazonaws.com/metamask/validate', + 'https://proxy.metafi.codefi.network/opensea/security/v1/validate', { method: 'POST', headers: { Accept: 'application/json', 'Content-Type': 'application/json', - 'X-API-KEY': 'NKYIN6cXkFaNnVIfzNx7s1z0p3b0B4SB6k29qA7n', }, body: JSON.stringify(dataToValidate), }, ); - return await response.json(); } diff --git a/test/e2e/tests/security-provider.spec.js b/test/e2e/tests/security-provider.spec.js index 24dc00e54..df0ff4390 100644 --- a/test/e2e/tests/security-provider.spec.js +++ b/test/e2e/tests/security-provider.spec.js @@ -3,7 +3,8 @@ const { convertToHexValue, withFixtures } = require('../helpers'); const FixtureBuilder = require('../fixture-builder'); const OPENSEA_URL = - 'https://eos9d7dmfj.execute-api.us-east-1.amazonaws.com/metamask/validate'; + 'https://proxy.metafi.codefi.network/opensea/security/v1/validate'; + /** * @param {import('mockttp').Mockttp} mockServer - The mock server. */