Skip to content

Commit d2b8630

Browse files
vanch3dcaoccao
authored andcommitted
[frontend] enable problem+json in the request headers of the HTTP client
1 parent f01275a commit d2b8630

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hivemq-edge-frontend/src/api/hooks/useHttpClient/useHttpClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ export const useHttpClient = () => {
6363
{
6464
BASE: config.apiBaseUrl,
6565
TOKEN: credentials?.token,
66+
HEADERS: {
67+
Accept: 'application/json, application/problem+json',
68+
},
6669
},
6770
AxiosHttpRequestWithInterceptors
6871
)

0 commit comments

Comments
 (0)