Skip to content

Commit

Permalink
Merge pull request #124 from hibare/dev
Browse files Browse the repository at this point in the history
Fix job status API 403 issue #118
  • Loading branch information
hibare authored Dec 14, 2021
2 parents 91ee72d + 320f554 commit 4008004
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import { EventBus } from '@/helpers/eventBus';

axios.interceptors.request.use(
request => {
const ignorePaths = ['/api/v1/jobs/status/']

if (request.url.startsWith('/api/v1/')) {
if (!ignorePaths.includes(request.url) && request.url.startsWith('/api/v1/')) {
const token = store.getters['auth/getAccessToken'];
request.headers.common["X-Access-Token"] = `JWT ${token}`;
}
Expand Down

0 comments on commit 4008004

Please sign in to comment.