From 7924a86bca705fc4ef1041f5c68c3136474c63dd Mon Sep 17 00:00:00 2001 From: Jeremy-Z Date: Thu, 8 Jan 2026 12:02:19 -0500 Subject: [PATCH] Fix for CORS errors for vehicles that have body styles with a non-alphanumeric value in them. --- src/store/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 14106bf2..e3555edb 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -1352,10 +1352,11 @@ export const useMainStore = defineStore({ async setVehicle() { const encodedMake = encodeURIComponent(this.order.vehicle.make); const encodedModel = encodeURIComponent(this.order.vehicle.model); + const encodedStyle = encodeURIComponent(this.order.vehicle.style); const response = await globalMethods .callHttpClient({ method: endpoints.GetVehicle.method, - endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${encodedMake}/${encodedModel}/${this.order.vehicle.style}`, + endpoint: `${endpoints.GetVehicle.url}/${this.order.vehicle.year}/${encodedMake}/${encodedModel}/${encodedStyle}`, payload: {} }); this.updateVehicle(response.data);