diff --git a/frontend/src/util/apiConnection.js b/frontend/src/util/apiConnection.js index ad3c05c1..f9b71903 100644 --- a/frontend/src/util/apiConnection.js +++ b/frontend/src/util/apiConnection.js @@ -32,7 +32,7 @@ const devDefaultOptions = { const getRequestOptions = () => { const mockUserShibId = localStorage.getItem(MOCK_USER) - const options = isDevEnv ? devDefaultOptions : {} + const options = isDevEnv ? devDefaultOptions : { headers: {} } return mockUserShibId ? { ...options, headers: { ...options.headers, 'x-mock-user-id': mockUserShibId } } : options