add authentication token for image server, change default image server to localhost

This commit is contained in:
2024-03-06 06:12:41 -07:00
parent f1bb1b51aa
commit 0eb64ed716
3 changed files with 32 additions and 9 deletions

View File

@@ -437,15 +437,6 @@ export default class ProjectViewView extends Vue {
return identity;
}
public async getHeaders(identity: IIdentifier) {
const token = await accessToken(identity);
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer " + token,
};
return headers;
}
onEditClick() {
localStorage.setItem("projectId", this.projectId as string);
const route = {