File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,8 +207,7 @@ export default {
207207
208208 const getIdUrl = ` /api/cve-id/${ usecveRecordStore ().cveId } ` ;
209209 try {
210- // axios.defaults.baseURL = `https://${import.meta.env.VITE_CVE_SERVICES_BASE_URL}`;
211- axios .defaults .baseURL = " https://cveawg.mitre.org" ;
210+ axios .defaults .baseURL = ` https://${ import .meta.env.VITE_CVE_SERVICES_BASE_URL}` ;
212211 const idData = await axios.get(getIdUrl);
213212 this.getIdStatusCode = 200;
214213 if (idData.status === 200 && idData?.data?.error === undefined) {
@@ -244,8 +243,7 @@ export default {
244243 }
245244 },
246245 async getRecordData() {
247- // const getRecordUrl = `https://${import.meta.env.VITE_CVE_SERVICES_BASE_URL}/api/cve/${usecveRecordStore().cveId}`;
248- const getRecordUrl = ` https://cveawg.mitre.org/api/cve/${ usecveRecordStore ().cveId } ` ;
246+ const getRecordUrl = ` https:// ${import.meta.env.VITE_CVE_SERVICES_BASE_URL}/api/cve/${usecveRecordStore().cveId}`;
249247 const recordData = await axios .get (getRecordUrl);
250248
251249 if (! (typeof (recordData .data ) === ' object' )) {
You can’t perform that action at this time.
0 commit comments