Skip to content

Commit

Permalink
🐛 Fix bearer authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed May 22, 2024
1 parent c0b36d4 commit 0ccd192
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/webtoon/migration/migration.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class MigrationService{
// Get migration infos using axios from the url
const response = await axios.get(url + "/api/v1/migration/infos", {
headers: {
"Authorization": adminKey
"Authorization": "Bearer " + adminKey
}
});

Check failure

Code scanning / CodeQL

Server-side request forgery Critical

The
URL
of this request depends on a
user-provided value
.
const migrationInfos: MigrationInfosResponse = response.data;
Expand Down Expand Up @@ -62,7 +62,7 @@ export class MigrationService{
const response = await axios.get(fileUrl, {
responseType: "stream",
headers: {
"Authorization": adminKey
"Authorization": "Bearer " + adminKey
}
});

Check failure

Code scanning / CodeQL

Server-side request forgery Critical

The
URL
of this request depends on a
user-provided value
.

Expand Down

0 comments on commit 0ccd192

Please sign in to comment.