Skip to content

Commit

Permalink
fix(ui): axios missing content type
Browse files Browse the repository at this point in the history
  • Loading branch information
Skraye committed Dec 6, 2024
1 parent c653a1a commit 37287d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/utils/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default (callback, store, router) => {
if (!refreshing) {
refreshing = true;
try {
await instance.post("/oauth/access_token?grant_type=refresh_token");
await instance.post("/oauth/access_token?grant_type=refresh_token", null, {headers: {"Content-Type": "application/json"}});
toRefreshQueue.forEach(({config, resolve, reject}) => {
instance.request(config).then(response => { resolve(response) }).catch(error => { reject(error) })
})
Expand Down

0 comments on commit 37287d5

Please sign in to comment.