Skip to content

Commit d815acc

Browse files
committed
revert hardcoding of base URLs
1 parent 6b5ef3b commit d815acc

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/views/CVERecord/CVERecord.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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')) {

0 commit comments

Comments
 (0)