Merge pull request #3231 from Safelite/nation/CASH-2867

CASH-2867 add device id for logging
This commit is contained in:
CarlNation 2026-06-16 14:17:17 -04:00 committed by GitHub
commit 656ee0f287
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -7,4 +7,5 @@ export const headerKeys = {
EON: "X-Enterprise-Order-Number",
LOG_ENABLED: "log-enabled",
PAGE_NAME_TO_LOG: "X-Page-Name-To-Log",
DEVICE_ID: "X-Device-Id",
};

View file

@ -10,6 +10,7 @@ import { getSessionKeyValue } from "@/helpers/heritage-integration/cookie-helper
import { headerKeys } from "@/constants/header-keys";
import axiosResponseInterceptorMessages from "@/constants/axios-response-interceptor-messages.js";
import { endpoints } from "@/constants/endpoints";
import { getDeviceIdValue } from "@/helpers/heritage-integration/cookie-helper";
// Add a response interceptor for global axios error handing.
axios.interceptors.response.use(
@ -73,6 +74,7 @@ export default {
[headerKeys.TRANSACTION_ID]: crypto.randomUUID(),
[headerKeys.EON]: order?.eon,
[headerKeys.LOG_ENABLED]: store.getters.applicationUser?.loggingOption ?? false,
[headerKeys.DEVICE_ID]: getDeviceIdValue(),
};
axios({