From d815acc9b58ed515d50f1cbb1cb2735863767659 Mon Sep 17 00:00:00 2001 From: athu-tran <63068972+athu-tran@users.noreply.github.com> Date: Tue, 8 Oct 2024 13:16:05 -0400 Subject: [PATCH] revert hardcoding of base URLs --- src/views/CVERecord/CVERecord.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/CVERecord/CVERecord.vue b/src/views/CVERecord/CVERecord.vue index e3331cdb..c5a3e0da 100644 --- a/src/views/CVERecord/CVERecord.vue +++ b/src/views/CVERecord/CVERecord.vue @@ -207,8 +207,7 @@ export default { const getIdUrl = `/api/cve-id/${usecveRecordStore().cveId}`; try { - // axios.defaults.baseURL = `https://${import.meta.env.VITE_CVE_SERVICES_BASE_URL}`; - axios.defaults.baseURL = "https://cveawg.mitre.org"; + axios.defaults.baseURL = `https://${import.meta.env.VITE_CVE_SERVICES_BASE_URL}`; const idData = await axios.get(getIdUrl); this.getIdStatusCode = 200; if (idData.status === 200 && idData?.data?.error === undefined) { @@ -244,8 +243,7 @@ export default { } }, async getRecordData() { - // const getRecordUrl = `https://${import.meta.env.VITE_CVE_SERVICES_BASE_URL}/api/cve/${usecveRecordStore().cveId}`; - const getRecordUrl = `https://cveawg.mitre.org/api/cve/${usecveRecordStore().cveId}`; + const getRecordUrl = `https://${import.meta.env.VITE_CVE_SERVICES_BASE_URL}/api/cve/${usecveRecordStore().cveId}`; const recordData = await axios.get(getRecordUrl); if (!(typeof (recordData.data) === 'object')) {