From f7b9b79cfb4bff89c92b410205e833893e53691c Mon Sep 17 00:00:00 2001 From: Chloe Herd Date: Wed, 8 Mar 2023 13:25:13 -0500 Subject: [PATCH] Cherry-pick: Update to call local DigitalAPI endpoint --- src/constants/endpoints.js | 2 +- src/global-methods.js | 5 ----- src/store/index.js | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/constants/endpoints.js b/src/constants/endpoints.js index 8c180ffb3..f23552d4b 100644 --- a/src/constants/endpoints.js +++ b/src/constants/endpoints.js @@ -55,7 +55,7 @@ const endpoints = { method: "POST", }, LookupVinByImage: { - url: "https://api.dev.belronus.io/ocr/api/v1/VIN", + url: "https://localhost:44331/vehicle/api/v1/vehicle/vins-by-image", method: "POST", }, IsVinByAddressPermissible: { diff --git a/src/global-methods.js b/src/global-methods.js index 82e9cd995..80107b392 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -60,11 +60,6 @@ export default { method: method, url: endpoint, data: payload, - crossDomain: true, - headers: { - "Access-Control-Allow-Origin": "*", - "X-Mule-Origin-Verify": "98SHAXE5DN8AWQJRYCT09KIO1RZ2PG", - }, }).then( (response) => { return resolve(response); diff --git a/src/store/index.js b/src/store/index.js index 529b24fc7..69fc5b946 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -532,7 +532,7 @@ export const actions = { }, lookupVinByImage(context, image) { const data = new FormData(); - data.append("vinFile", image); + data.append("vinImage", image); return globalMethods.callExternalHttpClient({ method: endpoints.LookupVinByImage.method, endpoint: endpoints.LookupVinByImage.url,