diff --git a/src/shared/services/roots.js b/src/shared/services/roots.js index 3e5930d..1d14816 100644 --- a/src/shared/services/roots.js +++ b/src/shared/services/roots.js @@ -11,7 +11,7 @@ const httpConfig = { xsrfCookieName: 'csrftoken', // The name of the cookie to use as a value for xsrf token timeout: 30000, // If the request takes longer than `timeout`, the request will be aborted (Error: timeout of 1000ms exceeded) transformResponse: [data => ({ ...JSON.parse(data) })], // Changes to the response to be made before it is passed to then/catch - headers: { 'X-VH-Source': 'extension' }, // Custom headers to be sent + headers: { 'X-VH-Platform': 'web', 'X-VH-Source': 'extension' }, }; const fetch = axios.create(httpConfig); diff --git a/src/shared/utils/network.js b/src/shared/utils/network.js index fa1d58c..baae930 100644 --- a/src/shared/utils/network.js +++ b/src/shared/utils/network.js @@ -2,7 +2,7 @@ import config from '@/config'; import { getAuthTokenFromStorage } from './auth'; -export const headers = { 'Content-Type': 'application/json', 'X-VH-Source': 'extension' }; +export const headers = { 'Content-Type': 'application/json', 'X-VH-Source': 'extension', 'X-VH-Platform': 'web' }; export const getEndpointUrl = ({ path }) => `${config.backendURL}${path}`;