Skip to content

Commit 3036dea

Browse files
authored
fix(RHINENG-8948): update request content-type for vulnerability api calls (#1177)
1 parent 1a7898e commit 3036dea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Utilities/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ export const fetchCvesInfo = async ({ cveIds }) => {
9595
method: 'POST',
9696
credentials: 'include',
9797
headers: {
98-
Accept: 'application/json',
99-
'Content-Type': 'application/json'
98+
Accept: 'application/vnd.api+json',
99+
'Content-Type': 'application/vnd.api+json'
100100
},
101101
body: JSON.stringify({ cve_list: cveIds })
102102
}).then(res => res.json()).then(data => data).catch(err => err);

0 commit comments

Comments
 (0)