diff --git a/src/constants/header-keys.js b/src/constants/header-keys.js index 4341d416b..c91e4aca8 100644 --- a/src/constants/header-keys.js +++ b/src/constants/header-keys.js @@ -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", }; diff --git a/src/global-methods.js b/src/global-methods.js index 584743b2d..240c80d82 100644 --- a/src/global-methods.js +++ b/src/global-methods.js @@ -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({